diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-28 18:50:33 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-28 20:30:07 -0700 |
| commit | f7bbe537c11b83c529d755622bc7fdb831d751cd (patch) | |
| tree | 6a822e808ac48046ab8932dbacf802036bb31150 /src/rt/rust_stack.cpp | |
| parent | fe610f04d89ae30e7ad68b9b519aa8461cd8d0fb (diff) | |
| download | rust-f7bbe537c11b83c529d755622bc7fdb831d751cd.tar.gz rust-f7bbe537c11b83c529d755622bc7fdb831d751cd.zip | |
Allow explicit self-calls within classes
Allow writing self.f() within a class that has a method f. In a future commit, this syntax will be required. For now, you can write either self.f() or f(). I added a "privacy" field to all methods (whether class methods or not), which allowed me to refactor the AST somewhat (getting rid of the class_item type; now there's just class_member).
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions
