This code simplifies the situation: compile_opt strictarr ec=hash() ec =dictionary('l', lambda('x:x^2') ) a={a:lambda('x:x^2')} scr=ec['l'] scr1=a.a print, scr(1), scr1(1) What is the syntax for accessing the lambda expression without the dummy variables scr and scr1. For example ec.l(1), (ec.l)(1), ((ec.1))(1) all return "undefined method for dictionary" or "syntax errors."
|