New feature proposal: "initialization scope"

TommiT tommitissari at hotmail.com
Thu May 16 01:04:45 PDT 2013


On Thursday, 16 May 2013 at 07:53:08 UTC, TommiT wrote:
> string s = int__str[42]; // OK
> int__str[42] = "43" // ERROR: Can't modify const

I should have said:

int n = str__int["42"];
str__int["42"] = 43; // ERROR: Can't modify str__int


More information about the Digitalmars-d mailing list