July 11, 2011 Re: This seems like what could be a common cause of bugs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | "Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message news:op.vygm6auqeav7ka@localhost.localdomain... > > 1f is one character shorter :P (BTW, not sure the grammar currently supports this one, even though it compiles. I think: > > Integer FloatSuffix > > should be added. > > I admit, there is no equivalent for real, since L is dual-purposed. > > -Steve I didn't even know that existed! Does it work in C? |
July 11, 2011 Re: This seems like what could be a common cause of bugs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Murphy | On Mon, 11 Jul 2011 11:22:40 -0400, Daniel Murphy <yebblies@nospamgmail.com> wrote:
> "Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message
> news:op.vygm6auqeav7ka@localhost.localdomain...
>>
>> 1f is one character shorter :P (BTW, not sure the grammar currently
>> supports this one, even though it compiles. I think:
>>
>> Integer FloatSuffix
>>
>> should be added.
>>
>> I admit, there is no equivalent for real, since L is dual-purposed.
>>
>> -Steve
>
> I didn't even know that existed! Does it work in C?
No, but I don't see why D has to be exactly the same as C :)
It's probably a bug, but it certainly makes sense to me to allow it, even if it's only useful for certain types. I can't see an ambiguity with it.
-Steve
|
Copyright © 1999-2021 by the D Language Foundation