Calling haXe functions from hscript

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling haXe functions from hscript

Ben Aurel
hi
Is there a way to extend hscript with haXe functions?
thanks
ben

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Calling haXe functions from hscript

Lee Sylvester
Check out filt3r3ks blog site (google it)... He's got a great example of
adding haXe functions, and classes you can instantiate, to hscript.

Lee




Ben Aurel wrote:
> hi
> Is there a way to extend hscript with haXe functions?
> thanks
> ben
>
>  


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Calling haXe functions from hscript

Nicolas Cannasse
In reply to this post by Ben Aurel
Ben Aurel a écrit :
> hi
> Is there a way to extend hscript with haXe functions?
> thanks

BTW I updated http://code.google.com/p/hscript/ page since in latest
hscript version there is support for "new" , "throw" and "try/catch".

You can then simply do the following in hscript, just like you would in
haXe :

var c = new MyClass();
c.myMethod();

Best,
Nicolas

--
haXe - an open source web programming language
http://haxe.org