News from Feb 08, 2008

  2008/02/08
Added JavaProxyObject!

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