On Tue, Mar 05, 2013 at 01:40:19PM +0100, Artur Skawina wrote: > On 03/05/13 00:23, H. S. Teoh wrote: > > On Tue, Mar 05, 2013 at 12:17:06AM +0100, Marco Leise wrote: > >> Am Mon, 04 Mar 2013 23:36:29 +0100 > >> schrieb "bearophile" <[email protected]>: > >> > >>> jerro: > >>> > >>>> Of course, expression templates should also be much easier > >>>> to implement in D than they are in C++. > >>> > >>> I don't remember seeing them implemented in D, so far. > >>> > >>> Bye, > >>> bearophile > > They are trivial to implement, i even gave you an example in the past: > > http://forum.dlang.org/post/[email protected] [...]
Very nice!! I like the way you use alias parameters to alleviate the need for C++-style expression-tree-simulation templates. Very clever! Yet another D feature that I haven't fully appreciated the full power of. T -- Nothing in the world is more distasteful to a man than to take the path that leads to himself. -- Herman Hesse
