August 24, 2005
In article <degkqa$ah9$1@digitaldaemon.com>, zwang says...
>
>David L. Davis wrote:
>> In article <degcho$2ust$1@digitaldaemon.com>, clayasaurus says...
>> 
>>>Sean Kelly wrote:
>>>
>>>>In article <degb0p$2toa$1@digitaldaemon.com>, Bob W says...
>>>>
>>>>
>>>>>DMD 0.130 is announced but currently
>>>>>not available.
>>>>>
>>>>>The file "dmd.zip" seems to be version
>>>>>0.129 and the file "dmd.130.zip" does
>>>>>not exist.
>>>>>
>>>>>Anything wrong with the new toy?
>>>>
>>>>
>>>>You're too fast.  DMD .130 isn't listed in the changelog yet, nor has Walter announced its release.  Assuming it's on its way, I imagine the files are still being uploaded and such.
>>>>
>>>>
>>>>Sean
>>>>
>>>>
>>>
>>>I see it in the changelog here http://www.digitalmars.com/d/changelog.html#new0130
>>>
>>>What's New for D 0.130
>>>Aug 21, 2005
>>>
>>>New/Changed Features
>>>
>>>    * Added Don Clugston's std.math.feqrel().
>>>
>>>Bugs Fixed
>>>
>>>    * Fixed D.bugs/4699
>>>    * Fixed D.bugs/4726
>>>    * Fixed D.bugs/4761
>>>    * Fixed D.bugs/4765
>>>    * Fixed D.bugs/4768
>>>    * Fixed DMDScript/174
>>>
>>>Maybe it was uploaded accidently with the website changing?...
>> 
>> 
>> Walter, since I don't see D.bugs/4750 the above list yet, could you please fix this major bug from v0.128 / v0.129 in the D v0.130 release. Currently I can't release my new project (which is very close now) that I've been burning the midnight hours on, until I can run it thru a good unittest.
>> 
>> Thanks in advance! :)
>> 
>> David L.
>> 
>> -------------------------------------------------------------------
>> "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
>> -------------------------------------------------------------------
>> 
>> MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
>
>#4750 looks like a constant folding bug.
>A workaround is to store either number in a variable before comparison.

zwang, thank you for the reply. You're correct, that placing the negative numeric literal into a variable does get around the current bug in the example I posted. But it still gets wrong results when I'm comparing the variable in some cases against a numeric types .min and .max methods. Which is now what's happening in my templates I'm using in my current project.

# //negcompare2.d
# private import std.stdio;
#
# int main()
# {
#     long lValue1 = -128;
#     long lValue2 = +128;
#
#     writefln("With -128 in a variable, if does work...");
#     writefln("main() : (-128 >= 0)=%s, (-128 <= 0)=%s",
#              (lValue1 >= 0 ? "true" : "false"),
#              (lValue1 <= 0 ? "true" : "false"));
#
#     writefln("main() : (128 >= 0)=%s, (128 <= 0)=%s",
#              (lValue2 >= 0 ? "true" : "false"),
#              (lValue2 <= 0 ? "true" : "false"));
#
#     writefln();
#
#     writefln("But where I need it the most, it does not!");
#     writefln("ulong.min=%d, ulong.max=%d", ulong.min, ulong.max);
#
#     writefln("main() : (-128 >= ulong.min)=%s, (-128 <= ulong.max)=%s",
#              (lValue1 >= ulong.min ? "true" : "false"),
#              (lValue1 <= ulong.max ? "true" : "false"));
#
#     writefln("main() : (128 >= ulong.min)=%s, (128 <= ulong.max)=%s",
#              (lValue2 >= ulong.min ? "true" : "false"),
#              (lValue2 <= ulong.max ? "true" : "false"));
#
#     return 0;
# }
#

Output:
------------------
C:\dmd>negcompare2
With -128 in a variable, if does work...
main() : (-128 >= 0)=false, (-128 <= 0)=true
main() : (128 >= 0)=true, (128 <= 0)=false

But where I need it the most, it does not!
ulong.min=0, ulong.max=18446744073709551615
main() : (-128 >= ulong.min)=true, (-128 <= ulong.max)=true
main() : (128 >= ulong.min)=true, (128 <= ulong.max)=true

C:\dmd>

Please notices that lValue1 (which is -128) is '>=' than '0', this can't be, because it will cause my unittests to fail.

Thanks again,
David L.

-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"
-------------------------------------------------------------------

MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html
August 24, 2005
"David L. Davis" <SpottedTiger@yahoo.com> wrote in message news:degj0v$5mg$1@digitaldaemon.com...
> Walter, since I don't see D.bugs/4750 the above list yet, could you please
fix
> this major bug from v0.128 / v0.129 in the D v0.130 release. Currently I
can't
> release my new project (which is very close now) that I've been burning
the
> midnight hours on, until I can run it thru a good unittest.

That is on my "must fix" list, and is one reason why .130 isn't ready to go out the door yet.


August 26, 2005
Sean Kelly escribió:
> In article <degb0p$2toa$1@digitaldaemon.com>, Bob W says...
> 
>>DMD 0.130 is announced but currently
>>not available.
>>
>>The file "dmd.zip" seems to be version
>>0.129 and the file "dmd.130.zip" does
>>not exist.
>>
>>Anything wrong with the new toy?
> 
> 
> You're too fast.  DMD .130 isn't listed in the changelog yet, nor has Walter
> announced its release.  Assuming it's on its way, I imagine the files are still
> being uploaded and such.
> 
> 
> Sean
> 
> 

This also happened with 0.93

-- 
Carlos Santander Bernal
1 2
Next ›   Last »