diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-28 17:53:00 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-06-28 18:00:39 +0200 |
| commit | 9561def20974acb302034c21b6de221972918d27 (patch) | |
| tree | cc9bb14a35c98f08af14983467ff03a6f91d4dbf /src/rt/rust_kernel.cpp | |
| parent | fb14afd5eb8ab19f08e37e295fb207f0a1bb8e23 (diff) | |
| download | rust-9561def20974acb302034c21b6de221972918d27.tar.gz rust-9561def20974acb302034c21b6de221972918d27.zip | |
Use 'resource' rather than 'res' as a keyword
Resources are now defined like...
resource fd(int n) { close(n); }
Calling fd with an int will then produce a non-copyable value
that, when dropped, will call close on the given int.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
