Re: Calling SUPER methods

2005-08-08 Thread Leopold Toetsch
Klaas-Jan Stol wrote: Hi, I was wondering if it is possible to call specific methods from a parent PMC from another method in your (child) PMC, for some other object than SELF. Yes, see below. My situation may be a bit complex, so I'll explain: I have a LuaTable PMC, extending the Hash P

Calling SUPER methods

2005-08-07 Thread Klaas-Jan Stol
Hi, I was wondering if it is possible to call specific methods from a parent PMC from another method in your (child) PMC, for some other object than SELF. My situation may be a bit complex, so I'll explain: I have a LuaTable PMC, extending the Hash PMC. I override the "add" method, because us

Re: Calling Super Methods

2005-07-23 Thread Leopold Toetsch
On Jul 23, 2005, at 17:46, Klaas-Jan Stol wrote: I've been in situations that you would want to call the superclass' constructor from the child's constructor, this is handy in situations that you want to add some extra things to the constructor, and you don't want to duplicate the code. So, i

Re: Calling Super Methods

2005-07-23 Thread Klaas-Jan Stol
Leopold Toetsch wrote: Matt Diephouse wrote: There's currently no way to call a superclass' method. I've just run into this and leo suggested I sent a note to the list. Here's what I want to do: I have a ParrotClass (a class defined in PIR) that is derived from the String class. I want to ov

Re: Calling Super Methods

2005-07-23 Thread Leopold Toetsch
Matt Diephouse wrote: There's currently no way to call a superclass' method. I've just run into this and leo suggested I sent a note to the list. Here's what I want to do: I have a ParrotClass (a class defined in PIR) that is derived from the String class. I want to override it's set_string_nat

Calling Super Methods

2005-07-22 Thread Matt Diephouse
There's currently no way to call a superclass' method. I've just run into this and leo suggested I sent a note to the list. Here's what I want to do: I have a ParrotClass (a class defined in PIR) that is derived from the String class. I want to override it's set_string_native method to do some pr