Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

namespace support


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 Agnis   Members   -  Reputation: 104

Like
0Likes
Like

Posted 04 December 2013 - 07:32 AM

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?

 



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3226

Like
0Likes
Like

Posted 04 December 2013 - 09:32 AM

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.


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 04 December 2013 - 05:52 PM

I've fixed this bug in revision 1793.

 

Thanks,

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.



PARTNERS