Feature request: with for enums
Moritz Warning
moritzwarning at _nospam_web.de
Mon Mar 10 05:29:55 PDT 2008
On Mon, 10 Mar 2008 09:54:12 +0000, Janice Caron wrote:
[..]
> with(MyEnum) MyEnum[100] table =
> [
> first,
> second,
> eighth,
> first,
> ...
> ];
>
> Apparently, "with" only works with structs and classes - not enums. I'm
> wondering if this can be extended and made to work also with enums?
>
> (...or if there's something I've missed, someone please tell me).
What you ask for is not possible yet.
As far as I can remember, Walter thought about adding this kind of feature
(at least for switch).
But I don't think it got much further since there is much other stuff to
do.
More information about the Digitalmars-d
mailing list