Advertisement Jump to content
Sign in to follow this  
Agnis ?ri?

namespace support

This topic is 1872 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

Running my code on AS 2.28.1 WIP (taken from svn 2013-11-20)

Following code gives an error "ERR  : Identifier 'Parent' is not a data type"

class Parent {}
namespace child {
   class Child : Parent {}
}

but 2nd code compiles without any errors

class Parent {}
namespace child {
   class Child : ::Parent {}
}

Will the scope operator "::"  be mandatory also in future?

 

Share this post


Link to post
Share on other sites
Advertisement

The compiler should be able to search the parent namespaces for symbols already. I implemented this in version 2.26.3 (released in May).

 

I believe you've stumbled upon a bug in the code. I'll investigate it and have it fixed as soon as possible.

Share this post


Link to post
Share on other sites
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!