[Issue 6238] Cannot define global immutable AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 3 23:03:50 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6238


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |All
         OS/Version|Windows                     |All


--- Comment #4 from yebblies <yebblies at gmail.com> 2012-02-04 18:03:48 EST ---
Yes, it's a line number bug.  The AA works perfectly well in ctfe, but once
evaluated it becomes:

int[string] hash3 = ["abc":0,"def":1,"ghi":2];

The wrong line is because that was the line it was last modified at, and the
interpreter forgets to correct it.

The error message is because of the same bug, and occurs after ctfe has
finished.
Doing everything except trying to initialize a global should be working in
ctfe.

I've opened a new bug report for the line number bug: issue 7434

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list