2012-07-11 12:28:30 -05:00
|
|
|
type clam = { chowder: &int };
|
2012-04-01 16:28:30 -05:00
|
|
|
|
2012-07-11 12:28:30 -05:00
|
|
|
impl clam for clam {
|
2012-07-12 11:36:56 -05:00
|
|
|
fn get_chowder() -> &self/int { ret self.chowder; }
|
2012-03-15 20:13:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let clam = { chowder: &3 };
|
|
|
|
log(debug, *clam.get_chowder());
|
2012-03-23 13:37:10 -05:00
|
|
|
clam.get_chowder();
|
2012-03-15 20:13:12 -05:00
|
|
|
}
|
|
|
|
|