Advertisement

Namespace auto detection fail

Started by November 18, 2015 08:11 AM
2 comments, last by cvet 8 years, 11 months ago

namespace A
{
	enum B
	{
		b1,
	}
	
	void main()
	{
		B b = B::b1; // Error: Unknown scope 'B'
		B b = b1; // OK
                B b = A::B::b1; // OK
	}
}

Hello.

Partial namespace specialization of enum namespace is not supported.

This is ok or not?

AngelScript revision - 2252.

It's quite possible that this is a bug. Even if it isn't, it should be possible add support for it even though partial namespace specialization isn't.

I'll investigate it. Thanks for bringing it up.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I've implemented this support in revision 2257.

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

Thanks!

This topic is closed to new replies.

Advertisement