Dashboard > Mantra > Browse Space > News from
  Mantra Log In | Sign Up   View a printable version of the current page.  
  News from Feb 08, 2008
  2008/02/08

You can now refer to any regular Java object from within mantra simply by using a variant on the import statement:

import java java.util.Vector;

Vector v = Vector();
v.add("hi");
v.add(34);
println(v.toString());
println(v.get(0));
println(v.get(1));

Field access works as well for now, it translates only string and integer objects to mantra objects. For other objects, it leads them as Java objects wrapped in a JavaProxyObject.

Posted at 08 Feb @ 11:52 AM by Terence Parr | 0 comments

February 2008
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29  

Jun 25, 2008
Jan 31, 2008

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.1 Build:#806 May 06, 2007) - Bug/feature request - Contact Administrators