Feature Requests item #1049515, was opened at 2004-10-18 14:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438938&aid=1049515&group_id=44253
Category: Interactions
Group: None
Status: Open
Priority: 5
Submitted By: Dan Smith (dlsmith)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow redefinition in interactions pane
Initial Comment:
From the interactions pane:
> int i = 3
> int i = 4
Error: Redefinition of 'i'
As the Java language dictates, this is an error. But
since the language used in the interactions pane isn't
*really* Java anyway, why not allow a looser
interpretation of the above code, and simply replace
the old definition of 'i' with a new one?
This error shows up a lot when some mistake is made in
defining a variable. For example:
> MyObject o = [long, complex expression here]
[user notices a mistake in the expression and presses 'up']
> MyObject o = [long, complex, modified expression here]
Error: Redefinition of 'MyObject'
It seems obvious in such cases that the user wants to
bind 'o' to the second instance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438938&aid=1049515&group_id=44253
|