[Issue 2075] New: Spec does not specify how array literals are stored.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 6 13:03:28 PDT 2008


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

           Summary: Spec does not specify how array literals are stored.
           Product: D
           Version: 1.029
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tomas at famolsen.dk


It seems DMD currently allocates all array literals on the GC heap. The spec
however does not state that this is the required behaviour, and frankly I think
it's a bad idea not being able to get a stack array without instead declaring a
static array temporary explicitly.


-- 



More information about the Digitalmars-d-bugs mailing list