Sign in to follow this  
randomguy123451

support for mixin

Recommended Posts

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

[url="http://en.wikipedia.org/wiki/Mixin"]http://en.wikipedia.org/wiki/Mixin[/url]

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this