[Issue 4357] Stack allocation for small scope dynamic arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 21 11:23:20 PDT 2010


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



--- Comment #2 from bearophile_hugs at eml.cc 2010-06-21 11:23:19 PDT ---
Sorry, I didn't know that. I have thought that the removal of the scope
attribute was only for class instances.

Even if the scope attribute can't be used on dynamic arrays, the last point I
have expressed applies still: if the compiler is able to perform escape
analysis (LLVM has some of such capability) and it can statically verify a
dynamic array never escapes, then if a runtime test shows such dynamic arrays
is small it can be allocated on the stack.

-- 
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