[Issue 9206] std.exception.isValidEnumValue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 20 14:45:04 PST 2013


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



--- Comment #2 from bearophile_hugs at eml.cc 2013-01-20 14:45:03 PST ---
(In reply to comment #1)
> Is this a duplicate or just related to Issue 8594?

This enhancement request is for a function to be used mostly at run-time, like
inside pre-conditions, to validate single enum arguments.

Issue 8597 is meant to be used mostly at compile-time to validate array
literals of enums (like strings literals of enum chars). So they are related
but they are not the same thing, they aren't a duplicate of each other. (Maybe
it's possible to implement part of one using the other, but not fully). So I
think they should be kept separated.

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