Jump to content
  • Advertisement
Sign in to follow this  
ninvertigo

Comparing primitive types?

This topic is 2197 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using a primitive type as follows:

engine->RegisterObjectType("myInt", sizeof(int), asOBJ_VALUE | asOBJ_POD | asOBJ_APP_PRIMITIVE ); assert( err >= 0 );

The Application can modify and use operators on this value, however the script cannot. Something as simple as the following will fail.

myInt test;
test = 0;

I receive the error "Can't implicitly convert from 'const uint' to 'myInt'." Since this is a primitive datatype I was under the assumption that I did not need to do anything specific to use these. What am I doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!