digitalmars.D.learn - Enum with base type string and switch
- seany (6/6) Nov 18 2013 Hi, I am experiencing the same issue as here:
- Jacob Carlborg (5/11) Nov 18 2013 Just pass -g on the command line, example:
- seany (4/6) Nov 18 2013 Uh, that does not work, (same error message) but a
- Chris Nicholson-Sauls (4/4) Nov 19 2013 This was a bug and has since been fixed, so the solution is
Hi, I am experiencing the same issue as here: http://forum.dlang.org/thread/bug-10113-3 http.d.puremagic.com/issues/ I have the DMD 2.061 for Linux 64 bit In this thread. their is a mention of one -g switch. I am sorry but can'T figure out how to implement the said -g switch. Please help.
Nov 18 2013
On 2013-11-18 13:48, seany wrote:Hi, I am experiencing the same issue as here: http://forum.dlang.org/thread/bug-10113-3 http.d.puremagic.com/issues/ I have the DMD 2.061 for Linux 64 bit In this thread. their is a mention of one -g switch. I am sorry but can'T figure out how to implement the said -g switch. Please help.Just pass -g on the command line, example: dmd main.d -g -- /Jacob Carlborg
Nov 18 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 -gUh, that does not work, (same error message) but a switch(cast(string)(enum_var)) seem to work
Nov 18 2013
This was a bug and has since been fixed, so the solution is simply to update your compiler. If there is some reason you can't (company required version, etc) then your cast() is sadly probably the only way.
Nov 19 2013