[Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-24 Thread T.J. Crowder
Hi On Mar 24, 4:54 pm, Luke kickingje...@gmail.com wrote: It's late, but I have to ask something though that it still don't understand. Why *doesn't* prototype just add a reference to the parent-class in subclasses? Like klass.prototype.superclass = superclass ...in Class.Create. Is it

[Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-24 Thread Luke
It's late, but I have to ask something though that it still don't understand. Why *doesn't* prototype just add a reference to the parent-class in subclasses? Like klass.prototype.superclass = superclass ...in Class.Create. Is it because the *this*-reference would go out of scope? -- You

[Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-24 Thread joe t.
i'd been kicking the sand wondering if i should go ahead and ask you to re-post that link, because i'd seen it months ago and then lost it. Glad this came up again (as i'm sure it will in the future) so i could just jump at the link and say thank you. And you're exactly right about the

Re: [Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-18 Thread Ryan Gahl
On Fri, Mar 18, 2011 at 9:30 AM, T.J. Crowder t...@crowdersoftware.comwrote: Prototype's magical `$super` comes at a marked runtime cost Just want to point out that the marked runtime cost is only at class definition time, not instance creation nor method call time. So yeah, the performance

[Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-18 Thread Luke
Thanks a lot TJ that helps! -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to

[Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-18 Thread T.J. Crowder
Hi again, Sorry for the double-post, somehow I managed to forget to say: My mechanism isn't just (slightly) more long-winded, it's also more complex to understand -- it demands more of the programmer. That's its real downside, not the trivial difference in the length of