www.digitalmars.com         C & C++   DMDScript  

D - import

reply Ant <Ant_member pathlink.com> writes:
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
Nov 15 2003
next sibling parent "Carlos Santander B." <carlos8294 msn.com> writes:
"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
Nov 15 2003
prev sibling parent reply "Charles Sanders" <sanders-consulting comcast.net> writes:
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
Nov 15 2003
parent reply "ant" <duitoolkit yahoo.ca> writes:
"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
Nov 15 2003
parent "Charles Sanders" <sanders-consulting comcast.net> writes:
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
Nov 15 2003