2021-11-04 | Paul Boddie | file changeset files shortlog | Store integers and floating point values as trailing data. Although not yet implemented, the idea is to reference them using tagged address attributes, and then to eventually support the copying of these values. | tagged-address-values |
paul@340 | 1 | class C: |
paul@340 | 2 | def f(self): |
paul@340 | 3 | return 1 |
paul@340 | 4 | |
paul@340 | 5 | def C_f(): |
paul@340 | 6 | return 2 |
paul@340 | 7 | |
paul@340 | 8 | def C__f(): |
paul@340 | 9 | return 3 |
paul@340 | 10 | |
paul@340 | 11 | c = C() |
paul@340 | 12 | print c.f() |
paul@340 | 13 | print C_f() |
paul@340 | 14 | print C__f() |