Transients or scoped immutability
KennyTM~
kennytm at gmail.com
Tue Apr 26 07:43:35 PDT 2011
On Apr 26, 11 19:43, bearophile wrote:
> This is less nice looking than possible alternatives, but it's not terrible, expecially if the tuple unpacking syntax sugar gets added to D:
> (How do you create pure delegates? A syntax like this doesn't work: const x= pure {return 0;})
auto x = delegate () pure /*nothrow*/ { return 0; };
but 'x' cannot be 'const' due to bug 5875.
More information about the Digitalmars-d
mailing list