Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Error: Found multiple matching enum values


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 virious   Members   -  Reputation: 181

Like
0Likes
Like

Posted 28 March 2012 - 07:13 AM

Hello, I have a test script:

enum eTestEnum
{
	eTestEnumVal = 1,
}

void testFunc()
{
	eTestEnum e = eTestEnumVal;
}

and I'm getting "Found multiple matching enum values" error at line with assignment. I have engine->ep.requireEnumScope set to false.
When I change my script to:
eTestEnum e = eTestEnum::eTestEnumVal;
it works without any errors. Why is that error happening in this example?

I'm using 2.23.0 WIP version of the AngelScript.

Thanks in advance!

Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 28 March 2012 - 01:28 PM

It looks like a bug in AngelScript. I'll look into it.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 01 April 2012 - 09:27 AM

I haven't been able to reproduce this problem.

Are you sure you don't have more than one enum that define the same enum value?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#4 virious   Members   -  Reputation: 181

Like
0Likes
Like

Posted 02 April 2012 - 05:51 AM

Yes, I'm sure. This enum was for test purposes only and was defined only in this one place.

#5 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 02 April 2012 - 08:09 AM

Did you test the script in your normal application, or did you write a separate test app?

Can you write a small test app that reproduces the problem and show it so I can debug it?
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#6 virious   Members   -  Reputation: 181

Like
0Likes
Like

Posted 04 April 2012 - 03:15 AM

I will try to write separate application to reproduce this problem.

#7 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 04 April 2012 - 08:29 AM

Thanks. It will help a lot.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#8 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 06 June 2012 - 12:58 PM

Is this bug still existing? Or can I consider it closed?

It is quite possible that it was related to the problems with the namespaces, and thus fixed in the WIP.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS