Thanks Nicolas,
I did look at that, but there are no examples on how to use it. For
example, what is p? What is the return value of val_iter_fields? It's a
bit ambiguous ;-)
Thanks,
Lee
Nicolas Cannasse wrote:
Lee McColl Sylvester a écrit :
Hey Justin,
That's awesome and I thank you for your quick reply. However, what I
need is to be able to get the field names within the C binary, not
the neko code. Do you know how I might do that? What I was hoping for
was an undocumented method called something like "value*
val_object_fields( obj )" or somesuch (which I know doesn't exist
because I've trawled the C sources many times, but I live in hope).
You have to call val_iter_fields + val_field_name, see
http://nekovm.org/doc/ffi#objects_misc
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)