2012-06-06 23:52:41 -05:00
|
|
|
class socket {
|
|
|
|
let sock: int;
|
|
|
|
|
|
|
|
new() { self.sock = 1; }
|
|
|
|
|
|
|
|
drop { }
|
|
|
|
|
|
|
|
fn set_identity() {
|
2012-07-04 14:04:28 -05:00
|
|
|
do closure {
|
2012-06-30 06:23:59 -05:00
|
|
|
setsockopt_bytes(self.sock) //~ ERROR copying a noncopyable value
|
2012-06-06 23:52:41 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn closure(f: fn@()) { f() }
|
|
|
|
|
|
|
|
fn setsockopt_bytes(+_sock: int) { }
|
|
|
|
|
|
|
|
fn main() {}
|