Re: [rust-dev] Sorting generics

2013-02-03 Thread Glenn Willen
Okay, at least in 0.5, multiple traits are spelled with a space, not a comma, oops. So it should be, after fixing most of the errors: use cmp::{Ord, Eq}; ... fn foo_genericT: Ord Eq ToStr Copy... There is one error left that I haven't figured out: /tmp/foo.rs:7:16: 7:20 error: illegal borrow:

Re: [rust-dev] Sorting generics

2013-02-03 Thread Glenn Willen
Oh, final reply to myself: I didn't notice that, in the original code, you did 'let part' instead of 'let mut part', in the generic function. After fixing that, the code works. Glenn On Feb 3, 2013, at 12:24 AM, Glenn Willen wrote: Okay, at least in 0.5, multiple traits are spelled with a

[rust-dev] Questions about pointers

2013-02-03 Thread Ziad Hatahet
Hi all, I was playing around with the different pointer types in Rust, and I have the following program: https://gist.github.com/4702154 My questions/comments are listed in lines 16, 23, 27, and 29. As a side note, I believe that there is still work being done on having mutability depend on the

Re: [rust-dev] First program?

2013-02-03 Thread Tim Chevalier
On Sat, Feb 2, 2013 at 12:49 PM, Tommy M. McGuire mcgu...@crsr.net wrote: Is this a good place to request comments on a (really horrible) first Rust program? Certainly! https://github.com/tmmcguire/rust-toys/blob/master/mk_anadict.rs For inspiration (and because I have no actual creativity