Skip to main content
gamedev.net
🔒 Locked

Creating a value type from initialization list

Started by miki151 0 replies 1.4k views
Original Post
miki151
miki151

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.

WitchLord
WitchLord

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 - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.