Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


- - - - -

support for mixin


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 randomguy12345   Members   -  Reputation: 105

Like
0Likes
Like

Posted 09 October 2011 - 09:08 PM

is there a support for mixin
http://juixe.com/techknow/index.php/2006/06/15/mixins-in-ruby/
http://groovy.codehaus.org/Runtime+mixins

http://en.wikipedia.org/wiki/Mixin

(this will solve my current problem regarding inheritance of many utility functions from classes.)

Sponsor:

#2 _orm_   Members   -  Reputation: 112

Like
0Likes
Like

Posted 10 October 2011 - 09:16 AM

Angelscript supports interfaces, which may provide the functionality you are looking for.

#3 randomguy12345   Members   -  Reputation: 105

Like
0Likes
Like

Posted 10 October 2011 - 06:23 PM

Mixin has got functionalities (functions) implemented, whereas interfaces do not have. It is a way around in groovy etc , which already support interfaces, but do not support multiple inheritance; even then through mixin many of such use cases are met.

but this mixin is such a thing, without which i can still live happily with the language. So not much worries on my part.

#4 Andreas Jonsson   Moderators   -  Reputation: 3721

Like
0Likes
Like

Posted 10 October 2011 - 06:25 PM

Mix-ins are not supported yet. However it is an interesting feature that I would like to take a closer look at in the future.<br><br>It can be accomplished through pre-processing and macros, but the CScriptBuilder pre-processor is not that advanced yet.
Perhaps you can modify the CScriptBuilder to make it able to include code from other files 'inline' rather than as another script section. <br><br><br>
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




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