[Issue 5997] Static arrays with 0 length accepted by compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 14 13:25:47 PDT 2011


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-05-14 13:21:39 PDT ---
(In reply to comment #1)
> (In reply to comment #0)
> > Is there a use case for 0-length static arrays?
> 
> I believe they can be used as a value type in an associative array to create a
> set.

Ah, you're right. I even forgot about opening this topic which mentioned this
trick:
http://www.digitalmars.com/d/archives/digitalmars/D/A_case_for_valueless_AA_s_133165.html

I'm closing this down.

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