Closed
Bug 663937
Opened 14 years ago
Closed 6 years ago
ANI: offer a robust string-to-C++-enum utility
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P2)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: stejohns, Unassigned)
References
Details
Idiomatic AS3 usage in Flash uses Strings for "enum"-ish values in lots of places. PlayerToplevel has two (different) utilities for dealing with doing conversion from String to C++ enum (and back). We should probably have the VM provide a single such utility and migrate existing code to use it.
Comment 1•13 years ago
|
||
Alternative proposal, use plain dynamic objects with string key's and int values, or for the other way use Array's with String values where array index==enum value. Ie move the problem to actionscript. If we had const/immutable tables the VM could do the translations as a constant folding optimization.
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Priority: -- → P2
Target Milestone: --- → Future
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•