about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-06-28 17:53:00 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-06-28 18:00:39 +0200
commit9561def20974acb302034c21b6de221972918d27 (patch)
treecc9bb14a35c98f08af14983467ff03a6f91d4dbf /src/rt/rust_kernel.cpp
parentfb14afd5eb8ab19f08e37e295fb207f0a1bb8e23 (diff)
downloadrust-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