Skip to content

Instantly share code, notes, and snippets.

View osaut's full-sized avatar

Olivier Saut osaut

View GitHub Profile

Keybase proof

I hereby claim:

  • I am osaut on github.
  • I am osaut (https://keybase.io/osaut) on keybase.
  • I have a public key whose fingerprint is 55E3 9215 9BED 7DCD D7EE B817 8184 D374 36EC 6D50

To claim this, I am signing this object:

@osaut
osaut / test.rs
Created February 27, 2013 15:57
Impure access
struct Box {
mut data : ~[float]
}
pub impl ops::Add<Box, Box> for Box
{
pure fn add(&self, other: &Box) -> Box {
let mut new_data : ~[float]=~[];
let mut ctr=0;