On Tue, 15 May 2007 00:32:07 +0200
Nicolas Cannasse <[EMAIL PROTECTED]> wrote:

> > If I pass an object into and out of C as in this callback to gtk
> > will the typing in the object be preserved when it's passed back
> > into neko? Right now in val_call1(func,widget) ; back in haxe i
> > can't access the fields i think should be there.
> 
> It should work, maybe something else is wrong.
> BTW don't forget to use free_root ;)
> 
> Nicolas
> 

Hi Nicolas

When I return an object from neko to haxe do i have to use this, to get the 
fields?

untyped {
        var f = __dollar__objfields( c );
}

I see this code is used in the posgres module by Lee, when he returns a
record, so it seems that haxe doesn't transparently pick up the fields
returned from neko.

thx

bd

-- 
"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti


-- 
"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti

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

Reply via email to