lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I import two types, which are very similar in their design. One of them
> works, the other doesn't, and I just can't understand why.
>
> EPointF = luanet.import_type("Endogine.EPointF");
> ERectangleF = luanet.import_type("Endogine.ERectangleF");
>
> rct = ERectangleF(0,0, 1,1)
> rct.X = 2
>
> pt = EPoint(1,1)
> pt.X = 1 --This fails! =nil!

Did you directly cut and paste this?  Because you create EPointF above
but then try to call EPoint (without the F).

--
Zachary P. Landau <kapheine@gmail.com>