Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > Leopold Toetsch wrote: >> What is unclear about: "This just moves the burden of doing a method >> call down to all classes and doesn't really fix anything."? > First you state "The "f" object (the method call stub) has to > shift up call arguments and place t

Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: Leopold Toetsch wrote: How should the following be handled: f = "parrot".index The CPython code is: 1 0 LOAD_CONST 0 ('parrot') 3 LOAD_ATTR0 (index) 6 STORE_NAME

Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Leopold Toetsch
Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Sam Ruby <[EMAIL PROTECTED]> wrote: >> How should the following be handled: >>f = "parrot".index > The CPython code is: > 1 0 LOAD_CONST 0 ('parrot') > 3 LOAD_ATTR0 (index) > 6

Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > Leopold Toetsch wrote: > How should the following be handled: >f = "parrot".index The CPython code is: 1 0 LOAD_CONST 0 ('parrot') 3 LOAD_ATTR0 (index) 6 STORE_NAME 1 (f

Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: Ramblings on creating a new VTABLE_call_method "slot" to help with implementing Python's bound vs unbound methods: http://www.intertwingly.net/blog/2005/01/03/Bound-Methods 1) Methods are functions, where the first parameter is the object.

Re: [PROPOSAL] VTABLE_call_method

2005-01-04 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > Ramblings on creating a new VTABLE_call_method "slot" to help with > implementing Python's bound vs unbound methods: > http://www.intertwingly.net/blog/2005/01/03/Bound-Methods 1) Methods are functions, where the first parameter is the object. We are current

[PROPOSAL] VTABLE_call_method

2005-01-03 Thread Sam Ruby
Ramblings on creating a new VTABLE_call_method "slot" to help with implementing Python's bound vs unbound methods: http://www.intertwingly.net/blog/2005/01/03/Bound-Methods This is related to a previous discussion on Overloaded Operator Methods: http://xrl.us/ekh8 - Sam Ruby