Closed Bug 561816 Opened 15 years ago Closed 14 years ago

repl silently ignores function redefinitions

Categories

(Tamarin Graveyard :: Virtual Machine, enhancement)

enhancement
Not set
normal

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.
NAB IMO but I'll let it stand for the moment.
Component: API → Virtual Machine
QA Contact: api → vm
Target Milestone: --- → Future
(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.