[Issue 6617] Two problems using enum lenghs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 16 10:14:49 PDT 2012


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


Tommi <tommitissari at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tommitissari at hotmail.com


--- Comment #1 from Tommi <tommitissari at hotmail.com> 2012-07-16 10:14:48 PDT ---
(In reply to comment #0)
> In practice I think a length attribute for enums is handy to have (this is a
> low-priority enhacement request):

I think it's a good enhancement, but instead of "length" it should be called
"count".

Tool {hammer, drill, screwdriver}

Tool.count;  // a lot better than Tool.length

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