1.1 --- a/docs/invocation.txt Fri May 29 00:18:40 2009 +0200
1.2 +++ b/docs/invocation.txt Sat May 30 20:27:20 2009 +0200
1.3 @@ -129,14 +129,18 @@
1.4 f(obj, 1, 2) # f not known at compile-time
1.5
1.6 f -> C.__new__ (known and called at run-time)
1.7 + -> load context for argument #1
1.8 + obj -> argument #2
1.9 + 1 -> argument #3
1.10 + 2 -> argument #4
1.11
1.12 Need to call C.__init__(<instance>, obj, 1, 2), preferably with the existing
1.13 frame:
1.14
1.15 - <insert instance before received arguments>
1.16 - obj -> argument #1
1.17 - 1 -> argument #2
1.18 - 2 -> argument #3
1.19 + *** -> instance overwrites argument #1
1.20 + obj -> argument #2
1.21 + 1 -> argument #3
1.22 + 2 -> argument #4
1.23
1.24 Then jump without switching frames.
1.25 It should be possible to replace the old, tentative context information in the