[Jmol-users] Var on globals

2014-04-03 Thread Ron Mignery
Not that there's anything wrong with it but release 14.0.13 of the application fails a script if globals are defined with var whereas earlier versions do not. test script: var x = X function test { print _version print x } In version 14.0.13 test prints: 1400013 whereas in 14.0.12 it prints

Re: [Jmol-users] Var on globals

2014-04-03 Thread Robert Hanson
Yes, that's (finally!) the correct behavior. Whew! In Jmol, functions are top-level objects, just as in JavaScript. I'm toying with the idea of private functions, objects, and this.xxx but it's not a priority. Bob On Thu, Apr 3, 2014 at 11:26 AM, Ron Mignery remign...@gmail.com wrote: Not