2020-07-16 | Paul Boddie | file changeset files shortlog | Fixed int limit macros by actually using the size of the int type. For wider types such as long, which may be usable on 64-bit platforms in place of int, 1L would need to be used instead of 1 in the calculation. An abstract native integer type might be introduced here and to the native library to allow wider types if appropriate. |
paul@2 | 1 | import A |
paul@2 | 2 | |
paul@270 | 3 | print A # A |
paul@270 | 4 | print A.C # B.C |
paul@270 | 5 | print A.C() # <B.C instance> |
paul@270 | 6 | print A.h # A.h |
paul@270 | 7 | |
paul@270 | 8 | print A.h(A.C()) # 1 |
paul@270 | 9 | print A.h(A.D()) # 3 |
paul@270 | 10 | |
paul@270 | 11 | from B import E |
paul@270 | 12 | |
paul@270 | 13 | print A.h(E()) # 2 |