Enum with base type string and switch

seany seany at uni-bonn.de
Mon Nov 18 05:33:42 PST 2013


On Monday, 18 November 2013 at 13:29:38 UTC, Jacob Carlborg wrote:
>
> Just pass -g on the command line, example:
>
> dmd main.d -g

Uh, that does not work, (same error message) but a

switch(cast(string)(enum_var))

seem to work


More information about the Digitalmars-d-learn mailing list