www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Enum with base type string and switch

reply "seany" <seany uni-bonn.de> writes:
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
parent reply Jacob Carlborg <doob me.com> writes:
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
parent reply "seany" <seany uni-bonn.de> writes:
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
Nov 18 2013
parent "Chris Nicholson-Sauls" <ibisbasenji gmail.com> writes:
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