Are you sure there is no way to achieve this by having some methods
extending some interface?

That's a good point; this is how one makes mix-in classes in RB.
It's possible that whatever functions Lars wants to add to his
various list classes, could be implemented as a mix-in.

Some could, some couldn't. For example:

Class FooList
 public Item(i as integer) as Foo
 public MaxIndex as integer

If for all similar list classes I wanted a Count function, which is
the maximum index plus one, I could define an Interface and an
extension method that implemented it. But the Item function couldn't
work that way. The point stands that RB has no way to specify a
"placeholder" for a type, which is what I believe would allow a
general solution to the problem that Joe brought up.

lj
_______________________________________________
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