Re: Closures
Harish Krishnaswamy <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
Pat wrote: >Also, on a slight tangent - Has anyone used the this.caller construct or other >advanced namespace features of BeanShell? e.g. setNameSpace(). I think this >is something that is pretty advanced for a scripting language. > > > I certainly think that Beanshell has advanced features that really simplifies development. For ex. I am currently using it for some sofisticated configuration of my application. And for that I need to trace any runtime errors back to the config file to the exact line. I accomplished this with a variant of Bshdoc.bsh script where I create a new Callstack with my Interpreter's namespace and use it eval the nodes from my config file and voila, line precise error reporting! Thanks! Harish ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297