Re: [rust-dev] does not fulfill `Send` error since last pull request

2014-04-10 Thread comex
On Thu, Apr 10, 2014 at 2:28 PM, Alex Crichton wrote: > [1] - > https://github.com/rust-lang/rfcs/blob/master/active/0003-opt-in-builtin-traits.md Off topic, but sigh... first private fields, now this to add even more verbosity to declaring a struct, which really should be a very low friction th

Re: [rust-dev] Rust windows bots have transitioned to mingw-w64

2014-04-10 Thread Thad Guidry
Ra Ra Ooo La La ! Good work team ! (looking forward to the 64-bit snapshots) On Thu, Apr 10, 2014 at 7:05 PM, Brian Anderson wrote: > After a long time coming, the Rust windows bots are now running an > up-to-date mingw-w64 toolchain. This was a very easy transition thanks to > the efforts of

Re: [rust-dev] Anyone in NYC?

2014-04-10 Thread Clark Gaebel
So this is happening now: http://www.meetup.com/nyccpp/events/168545012/ It's the C++ meetup, but I'll be giving a short talk on rust. Please RSVP before it fills up! - Clark On Wed, Mar 26, 2014 at 10:30 PM, Carter Schonwald < carter.schonw...@gmail.com> wrote: > I'm in NYC. > > ya'll shou

[rust-dev] Rust windows bots have transitioned to mingw-w64

2014-04-10 Thread Brian Anderson
After a long time coming, the Rust windows bots are now running an up-to-date mingw-w64 toolchain. This was a very easy transition thanks to the efforts of our windows devs, including Vadim, Thad, and klutzy. The practical impact of this is that windows developers should prefer the mingw-w64 t

Re: [rust-dev] About Rust programming language.

2014-04-10 Thread Thad Guidry
Much better 2nd response, Brian. More like a salesman. You want to pull them in ... not push them away :-) On Thu, Apr 10, 2014 at 2:01 PM, Brian Anderson wrote: > Sorry for the curt response. The answer is that Rust is suitable for many > of the same tasks as C. Thank you. > > Please do not h

Re: [rust-dev] About Rust programming language.

2014-04-10 Thread Brian Anderson
Sorry for the curt response. The answer is that Rust is suitable for many of the same tasks as C. Thank you. Please do not have this discussion here. On 04/10/2014 11:58 AM, Brian Anderson wrote: Thank you for your interest, but this is not a constructive topic for this venue. On 04/10/2014 1

Re: [rust-dev] Debugging with Rust 0.11 nightly

2014-04-10 Thread Corey Richardson
-g, or --debuginfo (0|1|2) will generate debuginfo. -g means --debuginfo 2. see rustc --help for more details. On Thu, Apr 10, 2014 at 8:13 AM, Artella Coding wrote: > Previously I would have debugged using the command "rustc -Z debug-info > example.rs". However with Rust 0.11 nightly it does not

Re: [rust-dev] About Rust programming language.

2014-04-10 Thread Brian Anderson
Thank you for your interest, but this is not a constructive topic for this venue. On 04/10/2014 11:35 AM, Jason Long wrote: Hello Folks. How are you? I want to know something about Rust language and Is it C killer? I mean is that in the future is it a replacement for C? Cheers. _

[rust-dev] Debugging with Rust 0.11 nightly

2014-04-10 Thread Artella Coding
Previously I would have debugged using the command "rustc -Z debug-info example.rs". However with Rust 0.11 nightly it does not work. What do I replace the above command with? Thanks. ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org

[rust-dev] About Rust programming language.

2014-04-10 Thread Jason Long
Hello Folks. How are you? I want to know something about Rust language and Is it C killer? I mean is that in the future is it a replacement for C? Cheers.___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] does not fulfill `Send` error since last pull request

2014-04-10 Thread Alex Crichton
Your BaseImpl enum isn't necessarily Send because it contains a trait object (~Base). The typechecker doesn't know what type is behind this trait object, so it doesn't know whether it's send or not. To make the BaseImpl type Send again, you can change the definition to: enum BaseImpl {

[rust-dev] does not fulfill `Send` error since last pull request

2014-04-10 Thread Philippe Delrieu
Since my last today gill fetch I have this error: error: instantiating a type parameter with an incompatible type `~BaseImpl`, which does not fulfill `Send` for this code : trait Base{} struct SecondThink{ count2: int, } enum BaseImpl{ FirstThinkImpl(~Base), SecondThinkImpl(~

Re: [rust-dev] impl num::Zero and std::ops::Add error

2014-04-10 Thread Tommi
Actually, I'd like to reiterate my original view that num::Zero should be renamed to AdditiveIdentity (bear with me) based on the fact that when mathematicians use the symbol 0 to denote additive identity, the symbol 0 is not read "zero", but as "additive identity". All the reasoning above appl

Re: [rust-dev] Some help needed in Vector of enum conversion

2014-04-10 Thread Philippe Delrieu
I trying to do some polymorphism with trait and object and I have some problems. At the beginning I want to store different types of object that implement the same trait (Base) in a Vec. To do this I use the enum pattern. If the enum contains only struct, I manage to iter the Vec for the diff

Re: [rust-dev] impl num::Zero and std::ops::Add error

2014-04-10 Thread Tommi Tissari
A nice side-effect of using such a trait as a bound to the range argument type A is that the meaning of iter::range(a, b) would become coherent (same regardless of A) and more intuitive: returns a DoubleEndedIterator to all the possible (and valid) values of type A in [a, b) in ascending order.