about having something similar to the extend attribute ?
brendan at mozilla.org
Mon Jan 8 11:29:41 PST 2007
On Jan 8, 2007, at 11:00 AM, Peter Hall wrote:
> Do you see any practical advantage of this over just using static or
> package-level methods and passing an instance as an argument?
Or another approach: plain old prototype hacking. True, you can't
make "fixtures" (AS3's traits, i.e., type-constrained properties that
cannot be removed or subverted). Perhaps there ought to be a way to
do that, since today's JS extends String by simply setting new
properties of String.prototype (frowned upon among Ajax experts, but
More information about the Es4-discuss