[Issue 4488] Faster fixed-size array initialization from literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 19 19:52:34 PDT 2010


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


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #1 from nfxjfg at gmail.com 2010-07-19 19:52:27 PDT ---
The problem is that array and struct initializers never worked with non-static
data (which is utterly retarded; even C can initialize any data with these;
what's even more retarded is that this was "fixed" by simply removing struct
initializers in D2 and replaced them by constructors, which are redundant to
opCall anyway... but I'm digressing.)

This means the above snippet is really:

double[2] arr;
arr = [x, y];

This makes it more obvious why it's allocating.

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