On Wed, 2007-10-10 at 20:57 -0500, Larry Garfield wrote: > On Wednesday 10 October 2007, Nathan Nobbe wrote: > > On 10/10/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > What I was really illustrating is how interfaces are syntactic > > > sugar only. In my above example what I've really shown is an > > > implicit interface :) Since OOP is largely meant to model real > > > world things, ask yourself this... when a doctor sews a pig's > > > heart into a human, do you think there's an explicit interface > > > someplace that checks for compatibility, or does it "just work" > > > if the conditions are right. Food for thought, pork in fact ;) > > > > i would look at that as a great example of an interface in action. > > the pigs heart has to be compatible with the human body in some > > way; they both have the same interface; namely the holes the tubes > > connect to. i assume the doctors are the ones who run the interface > > compatibility check. > > the implementation is different i suppose (im not a biologist, just > > guessing here :)) but thats the beauty of an interface; you just get > > a contract, not behavior. > > > > -nathan > > Pig heart transpants? That's almost as good as Godwin's Law. :-) (This > thread has been going on long enough that the statistical odds of it cropping > up are getting good.)
Whatever you say thread Nazi! ;) ;) ;) I invoke Godwin's Law. Now I invoke Quirk's exception. Nyah, nyah :) Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ........................................................... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php