On 07/12/2012 07:12 AM, Niko Matsakis wrote:
On 7/11/12 9:34 PM, Sebastian Sylvan wrote:
The hello world example on the website no longer compiles. This is the
only way I could make it compile:
for (&[1,2,3]).each |i| {
println(#fmt("hello, %d", i));
}
Is that right? That parenthesis around the vector literal is a bit
unfortunate. I couldn't get rid of the ampersand because it would fail
to compile with a "deprecated vec expr" error.
This is probably right at the moment. Unfortunate indeed. Soon [1, 2,
3] are to be "undeprecated" with a new meaning which would cause the
code as originally written to work again.
Let's change the example to show off a more attractive corner of the
language.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev