2012-04-24 17:52:52 -05:00
|
|
|
type clam/& = { chowder: &int };
|
2012-04-01 16:28:30 -05:00
|
|
|
|
2012-04-24 17:52:52 -05:00
|
|
|
impl clam/& for clam {
|
2012-03-15 20:13:12 -05:00
|
|
|
fn get_chowder() -> &self.int { ret self.chowder; }
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|