Jump to content

  • Log In with Google      Sign In   
  • Create Account

- - - - -

Mixin and namespace


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
3 replies to this topic

#1 cvet   Members   -  Reputation: 178

Like
0Likes
Like

Posted 04 June 2014 - 05:19 AM

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.



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 04 June 2014 - 11:55 AM

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

#3 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 05 June 2014 - 06:45 PM

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

#4 cvet   Members   -  Reputation: 178

Like
0Likes
Like

Posted 06 June 2014 - 01:46 AM

Thanks!






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