[Issue 9953] manifest constants of reference types should be illegal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 18 02:43:06 PDT 2013


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2013-04-18 02:43:05 PDT ---
This bug report seems for associative arrays too, then.

This bug report is about an old and significant problem of D. Disallowing all
enum reference types seems a little harsh, but I don't know if there are better
solutions.

One problem with this proposal is that there is probably some D code around
that uses enum dynamic arrays and associative arrays (I have stopped using them
in my code since some time), and this proposal will break that code.

One advantage of disallowing enum dynamic arrays is that this avoids a
performance trap, because they get rebuild at every usage point, and this in
the middle of a loop is a waste of time.

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