Closed
Bug 561816
Opened 15 years ago
Closed 14 years ago
repl silently ignores function redefinitions
Categories
(Tamarin Graveyard :: Virtual Machine, enhancement)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: pnkfelix, Unassigned)
Details
The AVM repl silently ignores function redefinitions; it should either emit/signal a warning/error saying that the function has already been defined, or incorporate the redefinitions according to whatever top level semantics we happen to like. (I'm a fan of just error'ing for now.)
I've written a simple example of such a redefinition below. I'm suggesting that the second attempt to define "f" should cause a warning message to be printed.
avmplus interactive shell
Type '?' for help
> function f() { return 1 }
> f()
1
> function f() { return 2 }
> f()
1
>
p.s. I'm not sure what Component avmshell is really part of; Tools? Virtual Machine? API seemed safe.
Comment 1•15 years ago
|
||
NAB IMO but I'll let it stand for the moment.
Component: API → Virtual Machine
QA Contact: api → vm
Target Milestone: --- → Future
| Reporter | ||
Comment 2•15 years ago
|
||
(i did classify as "enhancement")
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: flashplayer-qrb+
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•