2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2010-06-24 20:25:10 -05:00
|
|
|
type cell = tup(mutable @list);
|
|
|
|
type list = tag(link(@cell), nil());
|
2010-06-23 23:03:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
2010-06-24 20:25:10 -05:00
|
|
|
let @cell first = tup(@nil());
|
|
|
|
let @cell second = tup(@link(first));
|
|
|
|
first._0 = link(second);
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|