2011-06-13 | Paul Boddie | file changeset files shortlog | Renamed LoadResult and StoreResult. Changed the RSVP machine instruction handlers to accept an operand directly; this should assist the direct usage of instructions in the RSVP library. Added a trivial assignment test. |
paul@220 | 1 | #!/usr/bin/env python |
paul@220 | 2 | |
paul@339 | 3 | def f(self, x): |
paul@220 | 4 | return x |
paul@220 | 5 | |
paul@220 | 6 | class C: |
paul@339 | 7 | e = f |
paul@220 | 8 | |
paul@220 | 9 | class D: |
paul@220 | 10 | e = C.e |
paul@220 | 11 | |
paul@220 | 12 | d = D() |
paul@220 | 13 | q = d.e # unbound C.e |
paul@233 | 14 | result_321 = q(C(), 321) |
paul@220 | 15 | |
paul@220 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |