Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
November 15, 2003 import | ||||
---|---|---|---|---|
| ||||
Another thing with import. now to use toString I have to use the fully qualified: std.string.toString(123); before I used: string.toString(123); Am I doing something wrong? I hope so because typing all that can become very awkward. Ant |
November 15, 2003 Re: import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | "Ant" <Ant_member@pathlink.com> wrote in message news:bp5qoi$pqb$1@digitaldaemon.com... | Another thing with import. | | now to use toString I have to use the fully | qualified: | | std.string.toString(123); | | before I used: | | string.toString(123); | | Am I doing something wrong? | I hope so because typing all that can become | very awkward. | | Ant | | You can use .toString(123); ————————————————————————— Carlos Santander --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.538 / Virus Database: 333 - Release Date: 2003-11-10 |
November 15, 2003 Re: import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | Im crazy with the aliases i love em. This also helps with changes in the libraries and stuff, although admitedly I havent tried .75 yet, im a little scared to ;). alias std.string.toString d_str; C -.-- --- ..- / -..-. / ..-. .. --. ..- .-. . -.. / -..-. / .. - -..-. / --- ..- - / -..-. "Ant" <Ant_member@pathlink.com> wrote in message news:bp5qoi$pqb$1@digitaldaemon.com... > Another thing with import. > > now to use toString I have to use the fully > qualified: > > std.string.toString(123); > > before I used: > > string.toString(123); > > Am I doing something wrong? > I hope so because typing all that can become > very awkward. > > Ant > > |
November 15, 2003 Re: import | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charles Sanders | "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bp5vj1$109s$1@digitaldaemon.com... > Im crazy with the aliases i love em. This also helps with changes in the libraries and stuff, although admitedly I havent tried .75 yet, im a little > scared to ;). > > alias std.string.toString d_str; I use that for "import path; alias path filePath;" (I can't remember what was the problem.) but we would have to do that to all the functions we want to use. or maybe alias std.string str; str.toString(123); I never tried but Carlos' suggestion looks good. Ant |
November 15, 2003 Re: import | ||||
---|---|---|---|---|
| ||||
Posted in reply to ant | Yea I dont know how that works, the .toString , how does that work ?
--
-.-- --- ..- / -..-. / ..-. .. --. ..- .-. . -.. / -..-. / .. - / -..-.
/ --- ..- - / -..-.
"ant" <duitoolkit@yahoo.ca> wrote in message
news:bp613p$12d8$1@digitaldaemon.com...
>
> "Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bp5vj1$109s$1@digitaldaemon.com...
> > Im crazy with the aliases i love em. This also helps with changes in
the
> > libraries and stuff, although admitedly I havent tried .75 yet, im a
> little
> > scared to ;).
> >
> > alias std.string.toString d_str;
>
> I use that for "import path; alias path filePath;"
> (I can't remember what was the problem.)
>
> but we would have to do that to all the functions
> we want to use. or maybe
> alias std.string str;
> str.toString(123);
>
> I never tried but Carlos' suggestion looks good.
>
> Ant
>
>
|
Copyright © 1999-2021 by the D Language Foundation