Stable D version?

Mehrdad wfunction at hotmail.com
Mon Apr 22 22:02:39 PDT 2013


On Tuesday, 23 April 2013 at 04:56:13 UTC, kenji hara wrote:
> 2013/4/23 Mehrdad <wfunction at hotmail.com>
>
>> On Tuesday, 23 April 2013 at 04:44:52 UTC, kenji hara wrote:
>>
>>>
>>> This is mostly expected behavior. During compilation value 
>>> identities are
>>> not guaranteed.
>>> Because compile time evaluation is always done after constant 
>>> folding, and
>>> constant folding would fold "x".idup to "x", then S("x") == 
>>> S("x") is
>>>
>>> evaluated to true.
>>>
>>> Kenji Hara
>>>
>>
>> I'm not saying the 'true' is broken, I'm saying the 'false' is 
>> broken.
>>
>>
>> And don't miss this one, which contradicts the behavior above
>> http://forum.dlang.org/thread/**uqkslzjnosrsnyqnhzes@forum.**
>> dlang.org?page=2#post-**zdmtaeycpomrhjdeanlw:40forum.**dlang.org<http://forum.dlang.org/thread/uqkslzjnosrsnyqnhzes@forum.dlang.org?page=2#post-zdmtaeycpomrhjdeanlw:40forum.dlang.org>
>>
>
> Ah, OK. Surely that is a compiler bug which still not fixed.


Well, I think the float behavior is correct and the string 
example is broken, but that wasn't my point anyway.

The point was that it's still broken.


More information about the Digitalmars-d mailing list