Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Crash when declaring a private property accessor

4: Adsense

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
2 replies to this topic

#1 SadSingleton   Members   

102
Like
0Likes
Like

Posted 16 April 2012 - 12:31 PM

Hello,

Are private property accessors supported when using the non-prefixed syntax?

This code:

class TestClass
{
	private int MyProp
	{
		get { return 1;   }  
	}
}

results in a crash:

>msvcr90d.dll!_wassert(const wchar_t * expr=0x020fa840, const wchar_t * filename=0x020fa798, unsigned int lineno=3688)  Line 346   C
asCBuilder::CreateDataTypeFromNode(asCScriptNode * node=0x05a3c5e0, asCScriptCode * file=0x0546cf90, const asCString & implicitNamespace={...}, bool acceptHandleForScope=false, asCObjectType * currentType=0x00000000)  Line 3688 + 0x1d bytes		 C++
asCBuilder::RegisterVirtualProperty(asCScriptNode * node=0x05a3c5e0, asCScriptCode * file=0x0546cf90, asCObjectType * objType=0x05542d58, bool isInterface=false, bool isGlobalFunction=false, const asCString & ns={...}, bool isExistingShared=false)  Line 3284 + 0x39 bytes   C++
asCBuilder::ParseScripts()  Line 468 + 0x3d bytes	  C++
asCBuilder::Build()  Line 192			   C++
asCModule::Build()  Line 205 + 0xb bytes	 C++

Using 2.23.0.

#2 Andreas Jonsson   Moderators   

4626
Like
0Likes
Like

Posted 18 April 2012 - 05:29 PM

It should be supported. It looks like I've overlooked this.

I'll look into it and fix the code.
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   

4626
Like
0Likes
Like

Posted 21 April 2012 - 12:21 PM

I've fixed this bug in revision 1278.

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




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.