On Apr 6, 2007, at 6:53 AM, Jeff Walden wrote:
>> function maker () {
>> var o = arguments[0].intrinsic::construct.apply(null,
>> arguments.slice(1));
>> ...
>> return o;
>> }
>> The |null| is purely a guess; I suspect whatever's actually there
> is ignored.
Couple of updates:
* The hooks for get, set, etc. are in the meta namespace now.
* We eliminated meta::construct since classes have constructor syntax
already, and functions are a single special case.
* There remain unaddressed use-cases for applyNew or whatever you'd
call it (Narcissus calls it __applyConstructor__).
I think we'll want something, but we haven't agreed on it yet. We
believe it should not be a hook below class constructor syntax that
allows specializing constructors. I would rather it were a helper
that has the right parameters (the arguments array for the new
application) and that's it. I'll propose this.
/be