| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
January 22, 2014 problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
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 Re: problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Uplink_Coder | Uplink_Coder:
> is there any workaround for this ?
For me this is a feature, not a bug.
Bye,
bearophile
| |||
January 22, 2014 Re: problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 Re: problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 Re: problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Uplink_Coder | 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 Re: problems with mixins and non-ascii characters | ||||
|---|---|---|---|---|
| ||||
Posted in reply to monarch_dodra | .... 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 ...
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply