Oh, those are new :) I thought I had it working before in previous
modules I've built. I'm obviously not doing enough neko programming and
will step up my efforts.
Thanks Nicolas.
Lee
Nicolas Cannasse wrote:
Hi list,
I have two functions in an ndll module that receive and send a string
value. Generally, I query a value with one function then send to the
other. The problem is, I can print the string returned from the sender
function with no problems, but when I go to send to the second function,
I get "invalid field access : __s". Now, I know for sure that I'm
returning the string correctly and it's printing fine with
neko.Lib.print, so why is the __s field not available? And yes, I am
untyping the call.
A Neko String is different from a haXe String, because a Neko String is
a basic value while a haXe string is an Object with a couple of methods
that manipulates a Neko string in the background ( the __s field ).
You can convert to/from a Neko String by using neko.Lib.nekoToHaxe when
returning a neko value to haXe and neko.Lib.haxeToNeko when passing a
haXe value to Neko.
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)