2018-07-12 | Paul Boddie | file changeset files shortlog | Support trailing data after attributes in objects, employed by float instances to store their double-precision numeric data which needs more space than single attributes on some systems. In order to initialise such instances statically, specific object types must be indicated instead of the generic __obj type. This then requires casting to __ref of direct references to objects. Added an underflow error. Added initial testing of floating point numbers. | trailing-data |
paul@696 | 1 | class C: |
paul@696 | 2 | def f(x): |
paul@696 | 3 | return x |
paul@696 | 4 | |
paul@696 | 5 | def g(a, b, c): |
paul@696 | 6 | return a |
paul@696 | 7 | |
paul@696 | 8 | def h(x): |
paul@696 | 9 | return x |
paul@696 | 10 | |
paul@696 | 11 | c = C() |
paul@696 | 12 | f = c.f |
paul@696 | 13 | g = c.g |
paul@696 | 14 | h = c.h |
paul@696 | 15 | |
paul@696 | 16 | print g(h(12345), g(f(23456), h(34567), f(45678)), f(56789)) |