May 13, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Olaf Rogalsky | Thanks, that was the clue I needed. -Walter |
May 13, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | >> Otherwise still links to a runnable hello. As you can see, dmd still can't seem to access my dmd.conf even in /etc. If I don't include the -I switch, it just complains about not being able to find object.d again. I still don't know why.
>
> Did you edit the contents of /etc/dmd.conf?
Yes, I did. I think this is a problem peculiar to my system (or me). Since I don't see anybody else reporting trouble with this.
|
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | (dmd 0.64 on Win32) void main() { double d; printf('%f',d.isnan); } I get: no property 'isnan' for type 'double'. The same happens when using float or real, or for isinfinite, isnormal. I thought this was already implemented. By the way, maybe this a language (english) issue, but why this inconsistency: float.infinity and float.isinfinite? ————————————————————————— Carlos Santander --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.481 / Virus Database: 277 - Release Date: 2003-05-13 |
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | "Carlos Santander B." <carlos8294@msn.com> wrote in message news:b9s739$2s7v$1@digitaldaemon.com... > (dmd 0.64 on Win32) > > void main() { > double d; > printf('%f',d.isnan); > } > > I get: no property 'isnan' for type 'double'. The same happens when using float or real, or for isinfinite, isnormal. I thought this was already implemented. That's done with math.isnan(d). > By the way, maybe this a language (english) issue, but why this inconsistency: float.infinity and float.isinfinite? There isn't a float.isinfinite. float.infinity does not return a true or false, but returns the infinity value. |
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> escribió en el mensaje news:b9sctm$6t$1@digitaldaemon.com... | | ... | That's done with math.isnan(d). | | ... | There isn't a float.isinfinite. float.infinity does not return a true or | false, but returns the infinity value. | ... | Then the docs need to be fixed. What I meant with the inconsistency between isinfinite and infinity is that the first ends with e and the other with y. That's why I said it might be that just english is that way, but it's kinda confussing. ————————————————————————— Carlos Santander "Walter" <walter@digitalmars.com> escribió en el mensaje news:b9sctm$6t$1@digitaldaemon.com... | | ... | That's done with math.isnan(d). | | ... | There isn't a float.isinfinite. float.infinity does not return a true or | false, but returns the infinity value. | ... | Then the docs need to be fixed. What I meant with the inconsistency between isinfinite and infinity is that the first ends with e and the other with y. That's why I said it might be that just english is that way, but it's kinda confussing. ————————————————————————— Carlos Santander |
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | "Carlos Santander B." <carlos8294@msn.com> escribió en el mensaje news:b9sdds$qo$1@digitaldaemon.com... | "Walter" <walter@digitalmars.com> escribió en el mensaje | news:b9sctm$6t$1@digitaldaemon.com... | | | | ... | | That's done with math.isnan(d). | | | | ... | | There isn't a float.isinfinite. float.infinity does not return a true or | | false, but returns the infinity value. | | ... | | | | Then the docs need to be fixed. | | What I meant with the inconsistency between isinfinite and infinity is that | the first ends with e and the other with y. That's why I said it might be | that just english is that way, but it's kinda confussing. | Ignore that second part I said. I was too tired to read well. What I wanted to know is if I do if (cond) d=double.infinity else d=someOtherValue; How do I check if d is infinity or not? ————————————————————————— Carlos Santander --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.481 / Virus Database: 277 - Release Date: 2003-05-13 |
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | "Carlos Santander B." <carlos8294@msn.com> wrote in message news:b9tku6$1f4n$1@digitaldaemon.com... > How do I check if d is infinity or not? math.isinf(d) |
May 14, 2003 Re: DMD 0.64 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "Walter" <walter@digitalmars.com> escribió en el mensaje news:b9tqb5$1m32$3@digitaldaemon.com... | | "Carlos Santander B." <carlos8294@msn.com> wrote in message | news:b9tku6$1f4n$1@digitaldaemon.com... | > How do I check if d is infinity or not? | | math.isinf(d) | | Yes, I discovered it after my post. Thanks. ————————————————————————— Carlos Santander --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.481 / Virus Database: 277 - Release Date: 2003-05-13 |
Copyright © 1999-2021 by the D Language Foundation