Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Mixin and namespace

4: Adsense

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   

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



#2 Andreas Jonsson   Moderators   

4628
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   

4628
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   

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