Bob,
Tests are currently not compiling on Jmol 12.0, not able to run the unit
tests.
Nico
On Thu, Jul 22, 2010 at 10:41 PM, Robert Hanson <[email protected]> wrote:
> All hands on deck for feature check.
>
> Please exercise Jmol as much as you can and report back all bugs as a reply
> to this message.
>
> Uploaded version is at
> http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11.zip
>
>
> I just added one final touch that should be of great utility but might also
> introduce a bug or two. It's the last bit of "JavaScript-like" code for Jmol
> scripting: try/catch
>
>
> load 1crn.pdb
>
> try {
>
> load "adlfka" #junk -- doesn't exist or has no atoms
>
> } catch (e) {
>
> prompt "that file didn't load. Here's the reason: " + e
>
> }
>
> # 1crn.pdb will still be loaded.
>
>
> Works pretty much as in JavaScript. The TRY and CATCH braces are local
> variable spans, like FOR and WHILE. Meaning if you use VAR in there, it's
> local to that section. "e" will contain a message that includes the error
> and the trace into the Jmol script (not the Java code) that shows what
> generated it. It is a local variable to the CATCH{...} section. The CATCH
> block is optional.
>
>
> Bob
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> 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
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users