1/ Ok don't flame me... "Method pointers"

I *know* it is possible to accomplish all the delegation one might want by
using polymorphism, but this often leads to unncessary screeds of
boiler-plate,
so I still I believe there is a case for some kind of streamlining of
delegation by allowing it to be achieved on a method level rather than at a
class level.

For instance it might make sense for a Class to provide several sort
methods, polymorphism would require this class to implement a different
interface for each one, function pointers could be used instead to have a
method take a parameter and return a refrence to the appropriate method
thereby correctly (IMHO) encapsulating the decision/conditions within the
class and not exposing it externally.

2/ Jar versioning

Lets see a JVM which has the capability to accept simultaneous registration
of multiple versions of a package and resolve them to satisfy dependence
with an appropriate version, and without breaking the classloader model
we've grown to love (or perhaps merely accept!).
The version resolution could be,
by default the most recent,
where specified to the classloader by "specification version" the most
recent implementation of the spec
by "implementation version" a specific version.

Manifests could specify inter-package dependance declaratively.

This would surely be a huge boon to integration.

(P.S. I'd love to contribute to either idea...)

d


***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only. 
If you are not the intended recipient (or responsible for delivery of the message to 
the intended recipient) please notify us immediately on 0141 306 2050 and delete the 
message from your computer. You may not copy or forward it or use or disclose its 
contents to any other person. As Internet communications are capable of data 
corruption Student Loans Company Limited does not accept any  responsibility for 
changes made to this message after it was sent. For this reason it may be 
inappropriate to rely on advice or opinions contained in an e-mail without obtaining 
written confirmation of it. Neither Student Loans Company Limited or the sender 
accepts any liability or responsibility for viruses as it is your responsibility to 
scan attachments (if any). Opinions and views expressed in this e-mail are those of 
the sender and may not reflect the opinions and views of The Student Loans Company 
Limited.

This footnote also confirms that this email message has been swept for the presence of 
computer viruses.

**************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to