2018-07-21 | Paul Boddie | file changeset files shortlog | Invocations in parameter lists may require temporary storage for contexts and accessors, but the storage locations must be different. Otherwise, the code will generate a sequence-point warning. Here, distinct ranges for parameters in lists are introduced, and accessors are now also stored in arrays, permitting distinct storage. |
paul@320 | 1 | def f(): |
paul@320 | 2 | return 123 |
paul@320 | 3 | |
paul@320 | 4 | def g(): |
paul@320 | 5 | return 456 |
paul@320 | 6 | |
paul@320 | 7 | def h(): |
paul@320 | 8 | return f() |
paul@320 | 9 | |
paul@320 | 10 | print h() # 123 |
paul@320 | 11 | |
paul@320 | 12 | f = g |
paul@320 | 13 | |
paul@320 | 14 | print h() # 456 |