www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - problems with mixins and non-ascii characters

reply "Uplink_Coder" <someemail someprovider.some> writes:
Hi,
When I try to define an Enum with an umlaut like ä
	
enum test2 {
	l,
	ä
	}
I get  Error: basic type expected, not "\u00e4"
and     Error: type only allowed if anonymous enum and no enum 
type

is there any workaround for this ?
Jan 22 2014
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Uplink_Coder:

 is there any workaround for this ?
For me this is a feature, not a bug. Bye, bearophile
Jan 22 2014
next sibling parent Benjamin Thaut <code benjamin-thaut.de> writes:
Am 22.01.2014 11:46, schrieb bearophile:
 Uplink_Coder:

 is there any workaround for this ?
For me this is a feature, not a bug. Bye, bearophile
Why that? D is supposed to support unicode identifiers, and in this case it cleary does not?
Jan 22 2014
prev sibling parent reply "Uplink_Coder" <someemail someprovider.some> writes:
On Wednesday, 22 January 2014 at 10:46:30 UTC, bearophile wrote:
 Uplink_Coder:

 is there any workaround for this ?
For me this is a feature, not a bug. Bye, bearophile
I never said bug :D just I thoght UniCode should make this a non-issue ...
Jan 22 2014
parent reply "monarch_dodra" <monarchdodra gmail.com> writes:
On Wednesday, 22 January 2014 at 10:51:54 UTC, Uplink_Coder wrote:
 On Wednesday, 22 January 2014 at 10:46:30 UTC, bearophile wrote:
 Uplink_Coder:

 is there any workaround for this ?
For me this is a feature, not a bug. Bye, bearophile
I never said bug :D just I thoght UniCode should make this a non-issue ...
It's a bug. "ä" is a valid identifier.
Jan 22 2014
parent "Uplink_Coder" <someemail someprovider.some> writes:
.... Strange this bug seems to manifest itself only in some 
situations
enum ä {ä = "ä"}
does not work in dpaste but suddenly it works on my local 
enviorment (Windows-Mono-d,dmd 2.064.2)

it seems to have something todo with the abscence of a BOM header 
...
Jan 22 2014