Created
August 23, 2012 20:05
-
-
Save killerswan/3440976 to your computer and use it in GitHub Desktop.
an example && to replace (with ICE)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Call o.fsync after executing blk | |
| fn obj_sync(&&o: FSyncable, opt_level: option<Level>, /* ICE if I change this... */ | |
| blk: fn(&&Res<FSyncable>)) { | |
| blk(Res({ | |
| val: o, opt_level: opt_level, | |
| fsync_fn: fn@(&&o: FSyncable, l: Level) -> int { | |
| return o.fsync(l); | |
| } | |
| })); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment