namespace support

Started by
1 comment, last by WitchLord 10 years, 4 months ago

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?

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.

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 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

This topic is closed to new replies.

Advertisement