Thread overview
problems with mixins and non-ascii characters
Jan 22, 2014
Uplink_Coder
Jan 22, 2014
bearophile
Jan 22, 2014
Benjamin Thaut
Jan 22, 2014
Uplink_Coder
Jan 22, 2014
monarch_dodra
Jan 22, 2014
Uplink_Coder
January 22, 2014
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 ?
January 22, 2014
Uplink_Coder:

> is there any workaround for this ?

For me this is a feature, not a bug.

Bye,
bearophile
January 22, 2014
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?
January 22, 2014
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 ...

January 22, 2014
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.
January 22, 2014
.... 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 ...