Expression templates

David L. Davis SpottedTiger at yahoo.com
Tue Dec 12 10:46:21 PST 2006


Don my Bad! opps! I was still on dmd v0.176...sorry about that.

With dmd v0.177 this is the output:
-----------------------------------
C:\dmd>dmd expression_templates.d
In postfix: Vec Vec +
In postfix: scalar Vec *
In postfix: scalar Vec *  scalar Vec Vec +  scalar Vec *  +  *  +
C:\dmd\bin\..\..\dm\bin\link.exe
expression_templates,,,user32+kernel32/noi;

C:\dmd>expression_templates
b = a+c
b = 2*c
a = (27.4*a)+(4.936*((b+c)+(3.2*c)))

C:\dmd>
-------------------------------------

Thanks again for sharing this code.

David L.



More information about the Digitalmars-d mailing list