Mixins?

Will Java ever support mixins as illustrated in the Ruby language? I mean, I realise we can do some stuff with Generics when they arrive, and writing you’re own proxy classes works (but gets time comsuming after a while).

Are there any plans to support mixins natively as it were in the Java langauge?

Kev

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/faq.html#q:comparetomixin

I have not used mixins, so I cannot tell from first hand experience if aspects provide all functionality of mixins, but certainly they have large percentage of it, plus many, many more uses.

As for ‘native’ support, aspectj works on unmodified jvm, but is not exposed through reflection etc. I doubt if it will ever get into core.

Also see the very cool cglib http://cglib.sf.net. Combined classes, method call interceptors and proxies on the fly, with runtime bytecode generation.

This can be very usefull, even without a full-fleged AOP Environment.

Btw. This subject seems a little off-topic here and should be moved.

I agree, but the general populace seem to have read this area’s name as

“Game Play” and “Design”

instead of

“Game Play” and “Game Design”

So I was putting in the design section. Off-Topic would seem wrong, its not a suggestion… General?

Maybe I simply shouldn’t have raised it on a Games Forum?

Kev

[quote]…
So I was putting in the design section. Off-Topic would seem wrong, its not a suggestion… General?
[/quote]
You are right, we are missing a “General Software Design/Coding” board. Go to Suggestions? Or are these kind of questions, or pointers to interesting topics not numerous enought to justify a new board?