🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Namespace auto detection fail

Started by
2 comments, last by cvet 8 years, 6 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.

Advertisement
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

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