On Jun 05, 2006, at 17:18 UTC, Lars Jensen wrote:

> This seems like a specific instance of a more general problem. For
> instance, I often find myself writing classes that are lists of
> various things. With judicious naming, the only difference between the
> various list classes is the type of thing being listed. I'd like to be
> able to create a "template" class, method, or module that centralizes
> all the repetitive logic, and just leaves the type unspecified.

Hmm... templates could provide a sort-of solution to this problem, though not a 
very elegant one.  You'd have to templatize both the Comparable interface, and 
any method that made use of it.  I'll have to think about this some more.  
Thanks for a fresh way to look at it, at least!

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to