2 problems I can't get my head around

Walter Bright newshound2 at digitalmars.com
Mon Nov 26 13:19:40 PST 2012


On 11/27/2012 2:04 AM, Timon Gehr wrote:
> Because 'const' already denotes 'readonly'. :o)

const also implies it's an lvalue. A manifest constant cannot be an 
lvalue. This has some subtle implications with, for example, declaring 
const or enum members of a struct.



More information about the Digitalmars-d mailing list