Expression templates
Sean Kelly
sean at f4.ca
Tue Dec 12 09:23:18 PST 2006
Don Clugston wrote:
> The recent language improvements (especially, opAssign) have made
> expression templates eminently feasible. Here's a proof-of-concept which
> implements parsing of the basic vector operations of addition and scalar
> multiplication.
Interesting. Yet another example of where D's reference semantics for
classes dramatically simplify things. The code looks quite natural, and
without the debugging code is exceedingly short. Nice work!
Sean
More information about the Digitalmars-d
mailing list