Email: cnataren@novell.com
| www.flickr.com |
Ben Maurer
Miguel de Icaza
Duncan Mak
Gonzalo Paniagua
Jackson Harper
Lluis Sanchez
Martin Baulig
Mike Kestner
Sebastien Pouliot
Docs:
mjs talk .« Mono's JScript.NET update. | Main | ENC 2005. »
A long standing feature request for mjs had been the compilation of mutiple files, I'm really happy to announce that the support for it is advancing nicely, as images are worth a thousand words, take a look:
The files:
cesar@itaca:~/mono/mcs/jtests> cat f.js G ();function F () { print ("F called"); }
cesar@itaca:~/mono/mcs/jtests> cat h.js F ();function H () { print ("H called"); }
cesar@itaca:~/mono/mcs/jtests> cat tensquared.js
var tensquared = (function (x) { return x * x; }) (10);
print ("tensquared = ", tensquared);
cesar@itaca:~/mono/mcs/jtests> cat g.js H ();function G () { print ("G called"); }
The compilation action:
cesar@itaca:~/mono/mcs/jtests> mjs f.js h.js tensquared.js g.js Compilation succeeded
Last but not the least, execution:
cesar@itaca:~/mono/mcs/jtests> mono f.exe G called F called tensquared = 100 H called
I had to refactor and add some logic for identifier/method resolution and code generation, the another good news is that this changes will help me a lot for fixing some identifier and method resolution problems that we currently have. I need to test it and adapt our test suite for using this new feature. I'm expecting that this will speed up our test suite's execution time.