🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Creating a value type from initialization list

Started by
0 comments, last by WitchLord 9 years, 11 months ago

I prefer to use value types, but it seems the list factory function can only create reference types. Is there a way to create value types with initialization list, or perhaps register a function with a variable number of arguments of the same type using the generic calling convention?

Basically, all I want is a very simple container that gets passed back to C++ by value.

Advertisement

For value types you need to use the asBEHAVE_LIST_CONSTRUCT instead of list factory to add support for initalization lists.

Regards,

Andreas

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