On 28 sep, 09:25, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote:
>
> You can use $super in any method, not just initialize. The public method of
> "foo" still takes only 1 argument ("n") regardless of its declaration where
> $super is pushed in the front. (This is a bit magical.) The special word
> $super is just an implementation detail required in case you need a
> reference to the overriden method.
>

I tried some twists and try to call the parent method foo, but I
failed to see how this can be accomplished with $super and the actual
implementation. In the other hand, consider this blog post :
http://www.severnsolutions.co.uk/twblog/archive/2004/10/08/supersimulationjsoop

I think that this is more Java-like (which is my opinion the best OOP
language), and it makes more sense than having an extra parameter in
the consstructor.


> I have a Prototype OOP tutorial ready, I just didn't publish it because
> we're still deciding about the API of additional methods other than
> Class.create.

Yes, there could be methods to check the inheritance of an object,
etc. I can't wait to read the tutorial.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to