D - dmd\src\phobos\std\c
- Phill (6/6) Jan 07 2004 I beleive the file
- Phill (17/23) Jan 07 2004 Its ok, I just downloaded the updated zipfile.
- piderman (3/31) Jan 07 2004 You have to type: std.math.sin
- Antti =?iso-8859-1?Q?Syk=E4ri?= (7/53) Jan 07 2004 Or just use sin(10 * 100); unless you have the need to disambiguate it
- Mark Arts (2/30) Jan 07 2004
- Phill (4/46) Jan 07 2004 Thanks to all!
I beleive the file std.c.math is missing in 0.77 dmd\src\phobos\std\c\math.d is this true? Phill.
Jan 07 2004
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.
Jan 07 2004
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.
Jan 07 2004
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.
Jan 07 2004
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.
Jan 07 2004
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.
Jan 07 2004