Article View: comp.lang.misc
Article #4645Re: OOPS
From: rentsch
Date: Sun, 08 Feb 1987 12:00
Date: Sun, 08 Feb 1987 12:00
16 lines
1273 bytes
1273 bytes
In article <814@unc.unc.UUCP> rentsch@unc.UUCP (Tim Rentsch) writes: > Now, Stream and Random have almost nothing in common (they happen to > share the 'next' message, and their only common superclass is > Object). This example shows a useful case where we know essentially > nothing about the object X (only that it responds to 'next' and > returns a Float). My mistake: Random is in fact a subclass of Stream in the standard Smalltalk system. But, there is no reason it has to be -- Random could just as easily have been a subclass of Object. More to the point, as an sender to an argument of class Random, I don't know (obviously!) or care whether Random is related to Stream or not. cheers, Tim
Technical Details
Message-ID:
<815@unc.unc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!seismo!mcnc!unc!rentschReferences:
<364@oracle.tc.fluke.COM> <814@unc.unc.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!seismo!mcnc!unc!rentsch From: rentsch@unc.UUCP Newsgroups: comp.lang.misc Subject: Re: OOPS Message-ID: <815@unc.unc.UUCP> Date: Sun, 8-Feb-87 07:00:55 EST Article-I.D.: unc.815 Posted: Sun Feb 8 07:00:55 1987 Date-Received: Mon, 9-Feb-87 03:45:31 EST References: <364@oracle.tc.fluke.COM> <814@unc.unc.UUCP> Reply-To: rentsch@unc.UUCP (Tim Rentsch) Distribution: comp.lang.misc Organization: CS Dept, U. of N. Carolina, Chapel Hill Lines: 16