Stef, IIRC, Object Arts started promoting name spaces at one point, and (my best guess) ended up finding a very interesting solution using messages. I believe they call the result an environment, and by asking something for its environment that in turn understands messages to access classes one can do things like Smalltalk stef browser show. Smalltalk bill browser show. Where #stef and #bill provide our respective environments, and #browser answers a class. I'm not sure if that is at all relevant - free advice is often worth what we pay for it :) Bill -----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse Sent: Friday, September 04, 2009 3:05 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] [ANN] Yes but if we want to make sure that we could plug easily a new stream library we should either use virtual classes (quite difficult and major changes at language level) or readStream So readStream gives us a nice solution. Stef
I also prefer ReadStream on: since it is explicit about the stream you want rather than expecting the collection to know and have the protocol. I don't really see the need to rewrite the whole image.
Cheers mike
On Friday, September 4, 2009, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Peter you should have a look at Squeak by example and soon pharo by example
in short if you had a category with *MyPackage in a class of another package then your package MyPackage will contain the extensions.
You can see the extension by clicking on the Monticello browser and clicking browse.
In fact this is a good practice to check the extensions of a package before publishing it.
I can show you during the break :)
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project