Examples of API
Bruce Cohen
cohenb at gemstone.com
Thu Nov 12 19:31:35 UTC 1998
"Richard L. Peskin" <rlpcon at vermontel.net> wrote:
>> Right now, neither external processes or Unix pipes are directly
>> supported in Squeak. It's also unlikely that such platform-specific
>> features will ever end up in the core system. However, it would still
>> be nice to have, as an add-on.
At the risk of being branded a heretic, I'd like to point out that Java
has a reasonably portable abstraction for external execution in the
Runtime and Process classes. The *commands* needed to invoke a given
process are idiosyncratic to a platform, but they're modelled as
Strings; the details of exec and i/o streams to a process are
implemented inside Runtime and Process. You could easily do something
similar in Squeak, and even provide platform-dependent Strings for
common process invocations.
-----------------------------------------------------------------------------
Engineering is never having to say you're finished.
-----------------------------------------------------------------------------
Bruce Cohen, | email: cohenb at gemstone.com
GemStone Systems, Inc. | phone: (503)533-3602
20575 NW Von Neumann Drive | fax: (503)629-8556
Beaverton, OR USA 97006 | web: http://www.gemstone.com
More information about the Squeak-dev
mailing list
|