about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-03-28 14:17:41 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-03-28 14:19:00 -0700
commitca6636d6b689fe209a210b0eda51e368f01cdb0f (patch)
tree7c979884781d3179bb918045f414426eb6158cea /src/rt/rust_kernel.cpp
parentc141e7a068e3fbb1a5d24dcd000567b7731910bb (diff)
downloadrust-ca6636d6b689fe209a210b0eda51e368f01cdb0f.tar.gz
rust-ca6636d6b689fe209a210b0eda51e368f01cdb0f.zip
Allow references to "self" within classes
Allow writing self.f within a class that has a field f. Currently,
the compiler accepts either self.f or f. In a future commit I'll
require writing self.f and not f.

Not sure whether self.f() works if f is a method (making sure that
works next).
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions