[Issue 9957] [2.061 -> 2.062] Taking pointer of enum float array gives some garbage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 24 04:59:53 PDT 2013


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


bearophile_hugs at eml.cc changed:

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


--- Comment #9 from bearophile_hugs at eml.cc 2013-04-24 04:59:52 PDT ---
(In reply to comment #8)

> >     enum float[] A = [1.0, 2.0, 3.0];
> 
> I think, a bit controversially, that this line shouldn't compile. 
> See bug 9953.
> An enum of a reference type doesn't make sense, since it implicitly requires an
> address.

I kind of agree with this change, but it's a large change, so I think it should
be presented and discussed in the main D newsgroup.

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