
"Larry Evans" <cppljevans@cox-internet.com> wrote in message news:d0fomr$2v7$1@sea.gmane.org...
I've also very curious about how this was done. I create operators tree at compile-time of rhs, then I parse it using templates (most challenging) and the evaluate the result. That's all what my library does. Many years ago, I read Budd's _An Apl Compiler_ ( See http://web.engr.oregonstate.edu/~budd/vita/books.html for details ), and IIRC, some of the techniques he used there might be useful for something like this. IOW, he evaluated the data flow for a apl expression and somehow created c code to evaluate the rhs. IIRC, he also mentioned vector machines. Anyway, it may give you some more ideas for lazy evaluation.
I live in Russia, so I think that I can hardly find this book, but if you know where I can get ebook version it would be great.