Hi,
I'm learning how to open a file and write simple text data in it. I managed
something to work but was wondering whether I had to cast my filestream as
a writer:
use std::path::Path;
use std::rt::io::Writer;
use std::rt::io::file::open;
use std::rt::io::{Create, ReadWrite};
has there been any discussion about this recently? is there any issue
associated with it? How smooth is tackling the problem of making
unikernels out of rust code at the moment, given the state of the runtime?
Thanks,
Dan
On Fri, Mar 1, 2013 at 9:46 PM, Brian Anderson wrote:
> On 03/01/2013 0
There is now a dedicated OS IRC channel and wiki page:
https://github.com/mozilla/rust/wiki/Operating-system-development
signature.asc
Description: OpenPGP digital signature
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listin
Right now the file I/O isn't quite what I think we want it to be in
the end, but otherwise that is roughly the code which you'll want to
write. It could be slightly shortened like this:
use std::rt::io::Writer;
use std::rt::io::file::FileInfo;
use std::rt::io;
let mut stream = Pat
> use std::rt::io::File;
>
> let mut stream = File::create("test.txt");
> writeln!(&mut stream, "test {}, {}, {aa}", 1, 3.0, aa=2);
>
>
> Which I think looks a lot better than before! I would love to not have
> to write `&mut stream` or have something like `stream.write!(foo, bar,
>
On Wed, Oct 23, 2013 at 8:47 AM, Alex Crichton wrote:
> With these changes, the code would look like:
>
> use std::rt::io::File;
>
> let mut stream = File::create("test.txt");
> writeln!(&mut stream, "test {}, {}, {aa}", 1, 3.0, aa=2);
>
>
How would errors be handled in this case? Ra
> Are macros possible in traits?
Right now the grammar does not allow for this, and it may be difficult
to do so (I don't think that we're going to change that in the near
future)
> Object coercion would be great, is that a planned feature?
I believe so. I thought there was a bug open already, b
On 10/23/13 9:43 AM, Diggory Hardy wrote:
use std::rt::io::File;
let mut stream = File::create("test.txt");
writeln!(&mut stream, "test {}, {}, {aa}", 1, 3.0, aa=2);
Which I think looks a lot better than before! I would love to not have
to write `&mut stream` or have something l
On 10/23/2013 07:59 AM, Dan Cristian Octavian wrote:
has there been any discussion about this recently? is there any issue
associated with it? How smooth is tackling the problem of making
unikernels out of rust code at the moment, given the state of the runtime?
Not any further discussion alo
THIS Anvil ? --> http://anvil.readthedocs.org/en/latest/topics/summary.html
On Wed, Oct 23, 2013 at 8:32 PM, Brian Anderson wrote:
> On 10/23/2013 07:59 AM, Dan Cristian Octavian wrote:
>
>> has there been any discussion about this recently? is there any issue
>> associated with it? How smooth i
10 matches
Mail list logo