On 1/9/06, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I'm please to announce the 1.2 Release of Neko on http://nekovm.org
>
> This include several major changes :
>
>    - runtime exceptions : several operations that were returning "null"
> before are now raising an exception. This is the case for invalid
> function calls (not a function or invalid number of arguments), object
> field access (for example null.x) , array access (still null if outside
> of bounds) and numerical operations.
>
>    - linker : using "nekoc -link" you can now link a lot of .n bytecode
> files together into a single standalone .n file
>
>    - nekoboot : this utility enable you to create standalone executables
> from a single bytecode file
>
>    - renaming : the neko virtual machine is now named "neko" (instead of
> nekovm) and both neko and nekoml compilers are named "nekoc" and
> "nekoml". Compilers are built using nekoboot and are then standalon
> executables (this is more easy to use, simply "nekoc myfile.neko").
>
>    - TCO : tail recursion optimizations in Neko
>
>    - Object Prototypes : object can now have chained prototype (see
> Language Reference Documentation)
>
>    - standard library : added UTF8 support, improved XML parser, and
> other useful primitives as well
>
>     - licence change : Neko 1.2 is now LGPL while Neko 1.1 was GPL
>
What an excellent set of updates. A Big Thank You; congrats.

neko and nekoc seems to work great on my ubuntu/libnunx install but
nekoboot gives me:

feldt:~/tmp$ cat proto.neko
var superproto = $new(null);
superproto.puts = function() { $print(this.msg + "\n") }

var proto = $new(null);
$objsetproto(proto,superproto);
proto.print = function() { $print(this.msg) }

var o = $new(null);
o.msg = "hello";
$objsetproto(o,proto);
o.puts(); // print "hello"

$objsetproto(o,null); // remove proto
o.print(); // exception
feldt:~/tmp$ nekoc proto.neko
feldt:~/tmp$ neko proto
hello
Called from proto.neko line 14
Uncaught exception - Invalid call
feldt:~/tmp$ nekoboot proto
Called from tools/nekoboot.neko line 60
Uncaught exception - [file_contents,proto]
feldt:~/tmp$ nekoboot proto.n
Called from tools/nekoboot.neko line 65
Uncaught exception - File not found : neko
feldt:~/tmp$

What am I missing?

Regards,

Robert

--
Neko : One VM to run them all (http://nekovm.org)

Reply via email to