http://chemapps.stolaf.edu/jmol/zip/jmol-14.3.16_2015.09.22.zip
Jmol.___JmolVersion="14.3.16_2015.09.22"
bug fix: for(var x in ...) does not respect "var"
bug fix: x.format("JSON") fails for recursive x
-- arrays or associative arrays can be recursive
-- detection of recursion during SHOW, x.format("JSON"), and @x (deep
copy)
now delivers empty array or associative array
-- example:
$ a = [[1,2],3]
$ a..2 = a
$ print a.format("JSON")
[ [ 1,2 ],[ [ 1,2 ],[ ] ] ]
$ a = [b:1]
$ a.b = a
$ print a.format("JSON")
{ "b": { "b": { } } }
$ y = @x
$ show y
y = { "b":{ "b":{ } } }
new feature: x = @a
-- deep copy for a = array or associative array
-- @a for string variable still gets the value of the variable named by
variable a
-- math environment only, not SELECT
-- works also with expressions using @{...}: x = @{y.select("* where
atomno > 10")}
new feature: for allows one continuation line, as in JavaScript and Java
-- for example:
for (i = 1; i <= 3; i++)
print i;
bug fix: for (key in hash){...} fails upon functional iteration (deepCopy)
-- code was reusing the FOR variable when it should have been caching it
in the context stack
On Tue, Sep 22, 2015 at 8:57 AM, Robert Hanson <[email protected]> wrote:
> Great test!
> This was a problem with the for(var x in...) not respecting the "var"
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users