I like that I really think that we need to have infrastructure support to control the complexity. I like the OBPlatform idea. After the question is how much layers do we need. I imagine that we should not have that much one this is well done. Does the Platform code you suggest conflicts with some existing ones that could be merged/migrated into. Stef On Jan 8, 2009, at 8:00 PM, Michael Rueger wrote:
Hi all,
in Tweak there is a hierarchy of CPlatform classes (CPlatformWindows etc) that provide a central place to add platform specific requests and avoid having the current platform detection code all over the system
So instead of coding ExternalClipboard>>interfaceClass with all the gory details of platform detection you could just write
Platform current externalClipboardClass
We also used this in Sophie in connection with the FileLocations and URI package, supporting things like
Platform current tempDirectoryURI Platform current userDirectoryURI etc
What do people think about introducing something similar (category System-Platform) in Pharo?
Michael
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project