2008-08-18 | Paul Boddie | file changeset files shortlog | Added a class table which should provide run-time support for class compatibility testing. Improved optimisation activities to remove active value-providing instructions only where appropriate. Added more simple-input-employing instructions. Added notes about context discovery and replacement at run-time. Made the raw code dump include class contexts for class attributes where appropriate. Improved the tests of attribute access and invocation. |
paul@41 | 1 | #!/usr/bin/env python |
paul@41 | 2 | |
paul@41 | 3 | class C: |
paul@41 | 4 | value = "hello" |
paul@115 | 5 | x = 10 |
paul@41 | 6 | while x > 0: |
paul@41 | 7 | subvalue = "world" |
paul@115 | 8 | x = x - 1 |
paul@41 | 9 | |
paul@41 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |