Subj : Variable access (Rhino) To : netscape.public.mozilla.jseng From : ramirez@idconcepts.org (Edwin S. Ramirez) Date : Thu Apr 08 2004 01:49 pm Hello, Is it possible to obtain the local scope of the caller? How would currentScope be implemented to provide the behavior below? I am aware of dynamic scoping but I don't always want this behavior. Such that: var a = "2312"; function currentScope() { System.out.println(caller["a"]); } function test() { var a = "This is a test\n"; currentScope(); } Should output: This is a test -Edwin S. Ramirez- .