Template instantiation syntax

bearophile bearophileHUGS at lycos.com
Sat Oct 11 13:21:51 PDT 2008


Andrei Alexandrescu:
> I think the exclamation "it's not C++ enough" usually comes with a sigh
> of relief.

Quote of the week, thanks for the laugh :-) 


> > Perhaps ~> (shr), ~< (shl), ~>> (ushr), ~<= (shlAssign) and ~>= 
> > (shrAssign)?
> 
> I like the shr :o).

You know that Pascal/ObjectPascal use shr and shl as operators:

x := x shl 10;

But they don't have a syntax for the shlAssign/shrAssign.

Bye,
bearophile



More information about the Digitalmars-d mailing list