On Thu, Jul 11, 2013 at 7:40 AM, Josh Leverette <[email protected]> wrote: > Ok. That makes sense... and is there a tutorial where I can learn my way > around the module system? I was trying things like "use int" because I > didn't realize I should say "use std::int" when "use std" is implied in > every program by default. >
Not really, unfortunately. One is desparately needed. `use std` isn't actually implied, just `extern mod std` and `use std::prelude::*`. Furthermore, `use std` wouldn't bring the children of std into scope, that would be `use std::*`. > On Jul 11, 2013 6:29 AM, "Corey Richardson" <[email protected]> wrote: >> >> On Thu, Jul 11, 2013 at 7:24 AM, Josh Leverette <[email protected]> >> wrote: >> > Does it really make sense for me to be able to use the type 'int' if I >> > haven't declared the module for it? Or the opposite perspective, does it >> > really make sense for me to not be able to use the functions in int's >> > module >> > if I can use int? I understand it's a built-in, implicit type, but it >> > still >> > feels inconsistent. >> > >> >> Thing is, there shouldn't be any useful free functions there, >> everything dealing with numerics should be coming from std::num or >> methods on the types. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
