Sign in to follow this  
Wavesonics

asObjectType from a primitive array?

Recommended Posts

Should calling:
asIObjectType* elementType = scriptEngine->GetObjectTypeById( elementTypeId );


Return NULL for a script array that is for a primitive data type? For instance:
// Script
uint32[] someArray;


Makes sense, just making sure this is the expected behavior. [Edited by - Wavesonics on July 20, 2009 10:30:16 PM]

Share this post


Link to post
Share on other sites
Ah very good.

Have you thought about creating asObjectType instances in the engine or global space for the primitive types and returning those?

Seems like it might make it nice and uniform and remove potential special cases for users.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this