Advertisement

Property accessors with POD types

Started by November 02, 2011 05:32 PM
2 comments, last by WitchLord 13 years ago
Hi

I think I found potential bug with property accessors when using POD types without opAssign registered.
Explicit call like: 'val = obj.get_Value();' works, but 'val = obj.Value;' results in returning garbage with no indications that get_Value() was ever called. On top of that, compiler doesn't give any errors in ''val = obj.Value;' even if only set_Value(type) was registered.

All of this is fixed when registering opAssign for that POD type. (The POD type was registered with flags: asOBJ_VALUE | asOBJ_POD | asOBJ_APP_CLASS_CK | asOBJ_APP_CLASS_ALLFLOATS, I'm using rev: 1006)
I'll investigate this. In the meantime, could you upgrade to revision 1024? Its possible the latest bug fixes has fixed this scenario too.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
It looks like recent changes have fixed my problems too. Thanks for quick reply.
Thanks for the confirmation. That saves me some time trying to reproduce a problem that has already been fixed :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement