www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - weird constness by AA's

reply "Namespace" <rswhite4 googlemail.com> writes:
Why work this: http://dpaste.dzfl.pl/16a1c912
but not this: http://dpaste.dzfl.pl/6cebb0ad

?
Nov 15 2012
next sibling parent "Dan" <dbdavidson yahoo.com> writes:
On Thursday, 15 November 2012 at 20:59:37 UTC, Namespace wrote:
 Why work this: http://dpaste.dzfl.pl/16a1c912
 but not this: http://dpaste.dzfl.pl/6cebb0ad

 ?

If it is any consolation - the latter does work in 2.061 but not 2.060. It prints: [0:const(A), 1:const(A)] Thanks Dan
Nov 15 2012
prev sibling parent "Namespace" <rswhite4 googlemail.com> writes:
On Thursday, 15 November 2012 at 21:25:15 UTC, Dan wrote:
 On Thursday, 15 November 2012 at 20:59:37 UTC, Namespace wrote:
 Why work this: http://dpaste.dzfl.pl/16a1c912
 but not this: http://dpaste.dzfl.pl/6cebb0ad

 ?

If it is any consolation - the latter does work in 2.061 but not 2.060. It prints: [0:const(A), 1:const(A)] Thanks Dan

Ah, nice. I hope 2.061 comes soon.
Nov 15 2012