Re: [rust-dev] Met with a terrible fate

2014-07-03 Thread Isak Andersson
Aright great! I'll give it a try and let you all know if there is issues. I'll check the link as well, thank you! Cheers! Isak Andersson On Thu, Jul 3, 2014 at 3:58 PM, Alex Crichton wrote: > > I am thinking that maybe one solution could be that the C code calls > >

Re: [rust-dev] Met with a terrible fate

2014-07-03 Thread Isak Andersson
/rt/unwind/ > [3]: http://doc.rust-lang.org/std/rt/unwind/fn.try.html > > On Wed, Jul 2, 2014 at 6:07 PM, Isak Andersson > wrote: > > Hello! > > > > I have written a library in Rust that has some pub extern fv's in it so > that > > they are callable fro

[rust-dev] Met with a terrible fate

2014-07-02 Thread Isak Andersson
would be great! If you need more specific code examples of what I'm doing I can provide it it's just that I'm gonna sleep now and it doesn't seem like that's all too relevant. Also I did link to the libraries in the order it told me to. Cheers! Isak Andersson ___

Re: [rust-dev] Cargo multiple targets

2014-07-02 Thread Isak Andersson
est.html, search for "crate_type" w/o > quotes > > On 02 июля 2014 г., at 15:58, Isak Andersson > wrote: > > > Hi! > > > > Thanks for the reply! > > > > Apparently multiple targets does in fact work. Just that you can't rely > on the >

Re: [rust-dev] Cargo multiple targets

2014-07-02 Thread Isak Andersson
to change it to build a C library instead (a .a or .so on *nix or .lib I think on windows). Actually I'm not even sure how to make rustc build a C library so I guess that's what I will start looking at. On Wed, Jul 2, 2014 at 1:37 PM, Sebastian Gesemann wrote: > On Wed, Jul 2,

[rust-dev] Cargo multiple targets

2014-07-02 Thread Isak Andersson
ib or what? That would probably break the hmwhoami executable because I'd have to make the proof library an extern crate, at least I think I would have to do that. Thanks! Isak Andersson ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Something like generics, but with ints

2014-05-25 Thread Isak Andersson
> > -Kevin > > On May 25, 2014, at 10:55 AM, Isak Andersson > wrote: > > Hey, thanks for the reply! > > (minor correction for myself, I meant to say submatrix rather than > cofactor) > > Using Peano numbers is quite an interesting solution.. > > The po

Re: [rust-dev] Something like generics, but with ints

2014-05-25 Thread Isak Andersson
On 05/25/2014 07:25 PM, Isak Andersson wrote: > > Hello! > > > > I was asking in IRC if something like this: > > > > fn cofactor(m: Matrix, row, col: int) -> Matrix > {...} > > > > was possible. I quickly got the response that generics doesn't wo

Re: [rust-dev] Something like generics, but with ints

2014-05-25 Thread Isak Andersson
} > > fn cofactor( > m: Matrix, Succ>, > row: int, > col: int > ) -> Matrix > { > Matrix::{ data: vec!() } > } > > > Of course, I would dread seeing the error message should you need more > than a couple rows/columns... > > [1] http:

[rust-dev] Something like generics, but with ints

2014-05-25 Thread Isak Andersson
Hello! I was asking in IRC if something like this: fn cofactor(m: Matrix, row, col: int) -> Matrix {...} was possible. I quickly got the response that generics doesn't work with integers. So my question is, is there anyway to achieve something similar? Or would it be possible in the future to d