Thread overview |
---|
January 07, 2004 dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
I beleive the file std.c.math is missing in 0.77 dmd\src\phobos\std\c\math.d is this true? Phill. |
January 07, 2004 Re: dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
Posted in reply to Phill | Its ok, I just downloaded the updated zipfile. But now I get an error to the following test code: ----------------- import std.math; int main(char[][] args){ int x = math.sin(10 * 100); return 1; } ----------------------- Error : ------------------------------ test.d(5): undefined identifier math Any help is appreciated Phill. "Phill" <phill@pacific.net.au> wrote in message news:btghvs$qgh$1@digitaldaemon.com... > I beleive the file > std.c.math > is missing in 0.77 > > dmd\src\phobos\std\c\math.d > > is this true? > > Phill. > > |
January 07, 2004 Re: dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
Posted in reply to Phill | You have to type: std.math.sin Or make an alias. In article <btgiq2$rl5$1@digitaldaemon.com>, Phill says... > >Its ok, I just downloaded the updated zipfile. > >But now I get an error to the following >test code: >----------------- >import std.math; > >int main(char[][] args){ > > int x = math.sin(10 * 100); > > return 1; > > } >----------------------- >Error : >------------------------------ >test.d(5): undefined identifier math > >Any help is appreciated > >Phill. > > >"Phill" <phill@pacific.net.au> wrote in message news:btghvs$qgh$1@digitaldaemon.com... >> I beleive the file >> std.c.math >> is missing in 0.77 >> >> dmd\src\phobos\std\c\math.d >> >> is this true? >> >> Phill. >> >> > > |
January 07, 2004 Re: dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
Posted in reply to Phill | You have to type std.math.sin or make an alias. In article <btgiq2$rl5$1@digitaldaemon.com>, Phill says... > >Its ok, I just downloaded the updated zipfile. > >But now I get an error to the following >test code: >----------------- >import std.math; > >int main(char[][] args){ > > int x = math.sin(10 * 100); > > return 1; > > } >----------------------- >Error : >------------------------------ >test.d(5): undefined identifier math > >Any help is appreciated > >Phill. > > >"Phill" <phill@pacific.net.au> wrote in message news:btghvs$qgh$1@digitaldaemon.com... >> I beleive the file >> std.c.math >> is missing in 0.77 >> >> dmd\src\phobos\std\c\math.d >> >> is this true? >> >> Phill. >> >> > > |
January 07, 2004 Re: dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
Posted in reply to piderman | Or just use sin(10 * 100); unless you have the need to disambiguate it with some other sin. "import std.math" just merges the top-level declarations from std.math to the current scope, like #include in C. http://www.digitalmars.com/d/module.html -Antti In article <btgpa6$1510$1@digitaldaemon.com>, piderman wrote: > You have to type: std.math.sin > Or make an alias. > > In article <btgiq2$rl5$1@digitaldaemon.com>, Phill says... >> >>Its ok, I just downloaded the updated zipfile. >> >>But now I get an error to the following >>test code: >>----------------- >>import std.math; >> >>int main(char[][] args){ >> >> int x = math.sin(10 * 100); >> >> return 1; >> >> } >>----------------------- >>Error : >>------------------------------ >>test.d(5): undefined identifier math >> >>Any help is appreciated >> >>Phill. >> >> >>"Phill" <phill@pacific.net.au> wrote in message news:btghvs$qgh$1@digitaldaemon.com... >>> I beleive the file >>> std.c.math >>> is missing in 0.77 >>> >>> dmd\src\phobos\std\c\math.d >>> >>> is this true? >>> >>> Phill. >>> >>> >> >> > > |
January 07, 2004 Re: dmd\src\phobos\std\c | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark Arts | Thanks to all! Phill. "Mark Arts" <Mark_member@pathlink.com> wrote in message news:btgpp8$15nj$1@digitaldaemon.com... > You have to type std.math.sin or make an alias. > > In article <btgiq2$rl5$1@digitaldaemon.com>, Phill says... > > > >Its ok, I just downloaded the updated zipfile. > > > >But now I get an error to the following > >test code: > >----------------- > >import std.math; > > > >int main(char[][] args){ > > > > int x = math.sin(10 * 100); > > > > return 1; > > > > } > >----------------------- > >Error : > >------------------------------ > >test.d(5): undefined identifier math > > > >Any help is appreciated > > > >Phill. > > > > > >"Phill" <phill@pacific.net.au> wrote in message news:btghvs$qgh$1@digitaldaemon.com... > >> I beleive the file > >> std.c.math > >> is missing in 0.77 > >> > >> dmd\src\phobos\std\c\math.d > >> > >> is this true? > >> > >> Phill. > >> > >> > > > > > > |
Copyright © 1999-2021 by the D Language Foundation