January 04, 2008
  Not sure if it's feasible to keep a 2.0 + gdc build working - but
these changes (Attached) work for gdc
- looks like const(Value)  / const(char)  syntax completly throws gdc,
even if it's inside a version(D_Version2)

Do you have a non-hotmail address - hotmail is notorious for just trashing emails without notice... - hope this get's through..

?? take discussion onto DMDScript newsgroup?


Regards
Alan


January 04, 2008
Hi Alan,

Sorry it took so long to reply.  I must have left just as you were getting started.  I definitely like the idea of using charcodes as token types for some tokens.

Yesterday I tried declaring a enum TEXT : static const(char)[] and couldn't get it working even down to char[].  : p

Perchance you know how?

I'll examine the diff and make changes as best I can.

We ought to move this to either the dsource.org/ walnut forums, skype( murposaurus ) msn, hotmail or whatnot.  It's moved away from the subject matter of digitalmars.D.learn.

Regards,
Dan
January 04, 2008
.. moved from D.Learn...

This is in the manual for D2.0
enum TEXT : string
{
    A = "hello",
    B = "betty",
}

For 1.0/gdc this works and is effectively the same thing..
class TEXT {
	static const char[]
		hello = "hello",
		betty = "betty";
}

Regards
Alan


Dan Lewis wrote:
> Hi Alan,
> 
> Sorry it took so long to reply.  I must have left just as you were getting started.  I definitely like the idea of using charcodes as token types for some tokens.
> 
> Yesterday I tried declaring a enum TEXT : static const(char)[] and couldn't get it working even down to char[].  : p
> 
> Perchance you know how?
> 
> I'll examine the diff and make changes as best I can.
> 
> We ought to move this to either the dsource.org/ walnut forums, skype( murposaurus ) msn, hotmail or whatnot.  It's moved away from the subject matter of digitalmars.D.learn.
> 
> Regards,
> Dan
1 2
Next ›   Last »