Thread overview
dmd\src\phobos\std\c
Jan 07, 2004
Phill
Jan 07, 2004
Phill
Jan 07, 2004
piderman
Jan 07, 2004
Antti Sykäri
Jan 07, 2004
Mark Arts
Jan 07, 2004
Phill
January 07, 2004
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
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
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
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
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
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.
> >>
> >>
> >
> >
>
>