Advertisement

Mixin and namespace

Started by June 04, 2014 11:19 AM
2 comments, last by cvet 10 years, 5 months ago

AngelScript revision 1932.

I want use mixin in classes placed in separate namespaces.

But if class placed in named namespace, than mixin not works for it.

Example:

mixin class M1

{

int a;

}

namespace N1

{

class C1 : M1

{

void foo()

{

a = 10;

}

}

}

Output:

INFO : Compiling void C1::foo().
ERROR : 'a' is not declared.

This appears to be a bug. I'll look into it.

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 fixed this in revision 1948.

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

Thanks!

This topic is closed to new replies.

Advertisement