Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Mixins?  (Read 1917 times)
0 Members and 2 Guests are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« on: 2003-08-18 04:55:59 »

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

Offline abies

Sr. Member
**

Posts: 456



« Reply #1 on: 2003-08-18 07:01:06 »

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.

Artur Biesiadowski
Offline sugarshark

Jr. Member
**

Posts: 58


Sugar to the sharks.


« Reply #2 on: 2003-08-19 03:31:28 »

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.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Games published by our own members! Go get 'em!
Offline sugarshark

Jr. Member
**

Posts: 58


Sugar to the sharks.


« Reply #3 on: 2003-08-19 03:33:41 »

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

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #4 on: 2003-08-19 03:45:44 »

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


Offline sugarshark

Jr. Member
**

Posts: 58


Sugar to the sharks.


« Reply #5 on: 2003-08-20 07:57:38 »

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

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?

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 19 queries.