#32 eval() side effects in wrong namespace

closed-fixed
nobody
None
7
2001-05-30
2001-05-02
No

The current implementation of the eval(String) command
does not have a way to determine the namespace of the
caller... It currently uses the global namespace and
that is where side effects will appear (e.g. eval
("a=5");)

To fix this I'm considering adding a this.caller magic
field that will always hold a This ref to the calling
context.

--Pat

Discussion

  • Pat Niemeyer

    Pat Niemeyer - 2001-05-30
    • status: open --> closed-fixed
     
  • Pat Niemeyer

    Pat Niemeyer - 2001-05-30

    Logged In: YES
    user_id=18885

    Fixed (along with similar commands requiring caller
    namespace) in 1.1a10

     

Log in to post a comment.