On 7/18/06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> I think this was Greg's point. Talking about C++ and super() is
> nonsensical.
If you're talking pure C++, yes. But I was talking about programming
system built on top of C++ implementing cooperating multitasking.
As I am fond of repea
On 7/18/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> > In the world where cooperative multiple inheritance
> > originated (C++), this would be a static error.
>
> I wasn't aware that C++ had anything resembling super().
> Is it a recent addition to the language?
I don't kn
On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> C++ originally specified multiple inheritance, but it wasn't "cooperative" in
> the sense that super is. In Lisp, though, where cooperative method dispatch
> originated, call-next-method does basically the same thing in the case where
> th
On Tue, 18 Jul 2006 09:24:57 -0400, Jean-Paul Calderone <[EMAIL PROTECTED]>
wrote:
>On Tue, 18 Jul 2006 09:10:11 -0400, Scott Dial <[EMAIL PROTECTED]> wrote:
>>Greg Ewing wrote:
>>> Guido van Rossum wrote:
In the world where cooperative multiple inheritance
originated (C++), this would
On Tue, 18 Jul 2006 09:10:11 -0400, Scott Dial <[EMAIL PROTECTED]> wrote:
>Greg Ewing wrote:
>> Guido van Rossum wrote:
>>> In the world where cooperative multiple inheritance
>>> originated (C++), this would be a static error.
>>
>> I wasn't aware that C++ had anything resembling super().
>> Is it
Greg Ewing wrote:
> Guido van Rossum wrote:
>> In the world where cooperative multiple inheritance
>> originated (C++), this would be a static error.
>
> I wasn't aware that C++ had anything resembling super().
> Is it a recent addition to the language?
>
It is much more explicit, but you call t
Guido van Rossum wrote:
> In the world where cooperative multiple inheritance
> originated (C++), this would be a static error.
I wasn't aware that C++ had anything resembling super().
Is it a recent addition to the language?
--
Greg
___
Python-Dev mail
On 7/16/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
> For about the third time in my life, I thought I might
> have found a use for cooperative super calls, but I've
> run into another problem with the concept.
>
> Consider:
>
> class A(object):
>def m(self):
> print "A.m"
>
> class B(ob
For about the third time in my life, I thought I might
have found a use for cooperative super calls, but I've
run into another problem with the concept.
Consider:
class A(object):
def m(self):
print "A.m"
class B(object):
def m(self):
print "B.m"
super(B, self).m()
clas