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

Mixin and namespace

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

Advertisement

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

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