Closed
Bug 639548
Opened 15 years ago
Closed 7 years ago
ClassClosure needs a "constructObject" method with no args
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: stejohns, Unassigned)
Details
There are use cases in Flash (eg AMF handling) that use a ClassClosure to construct a plain ScriptObject, by calling into construct() with 0 args (all such usage assumes that the class being constructed has a compatible ctor, of course).
IMHO it's preferable to deprecate non-VM code calling the construct(argc,argv) method directly, and add a new method ("constructPlainObject()") for this purpose.
I'm unsure on a good name, though; "constructObject" is problematic: if we were returning naked pointers, then a covariant return type would be OK:
ClassClosure:
ScriptObject* constructObject();
SomeSubclass:
SomeSubclass* constructObject();
But we really want to return GCRef<>s, so I suspect this would be an illegal override:
ClassClosure:
GCRef<ScriptObject> constructObject();
SomeSubclass:
GCRef<SomeSubclass> constructObject();
Any votes for a name? constructAnonObject? constructPlainObject?
Comment 1•15 years ago
|
||
instantiate()?
Comment 2•7 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Comment 3•7 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•