Phil M a écrit :
On Feb 23, 2006, at 6:56 PM, Guyren Howe wrote:

Related: I've put in a feature request that all classes should also be considered Class Interfaces (so you could put the name of a class in your Interfaces line for a different class, and use it anywhere you could use the class). It would be really nice to just proxy any class that easily. And really, a class is just another way to define a type, so I say let's treat types the same, as much as we can.

woqqpqgd


That is an interesting idea, so I signed on.

But it would take a lot of thought before something like this could be implemented... it would be a nightmare (as is) to distinguish between the true class and a class that implements it's interface because "IsA" would evaluate true for both cases. It would also be a bit inflexible requiring the implementing class to have all of the methods of the base class regardless if the design warrants it.

I did sign too...

As an alternative, wouldn't it be interesting to have an IDE menu option "New Interface from Class...", creating an Interface from all the prototypes of the methods in a given Class?

Réal

_______________________________________________
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