SerialPort cross-platform question...

John.Maloney at disney.com John.Maloney at disney.com
Tue Feb 26 22:02:08 UTC 2002


As Andreas and Ned pointed out, MIDI ports are different from
serial ports and it was just a coincidence that that enumerating
the MIDI port list actually gives some useful information about
serial ports on a Mac.

However, since a list of ports *IS* useful, why not add primitives to
list all available serial ports and make these primitives work across
all platforms?  The only problem is that it might be difficult to
enumerate all the serial ports on certain platforms (*nix in particular).
Still, defining the primitives and making them work on Windows
and Mac would be a step towards a nice cross-platform solution...

	-- John



At 9:09 AM -0800 2/25/02, Andreas Raab wrote:
>Dan,
>
>> If the portCount and portName primitives used by this 
>> facility work on all platforms, then there is at least the 
>> promise of things being pretty civilized.
>
>Yes, but remember you are asking for *MIDI* ports not serial ones.
>Here's what you get on my machine:
>
>MidiPrimTester new getPortList '
>MIDI Ports:
>	0: Microsoft MIDI-Mapper (out)
>	1: Microsoft GS Wavetable SW Synth (out)
>'
>
>Both of them are MIDI ports - neither of them is a serial one.
>
>Cheers,
>  - Andreas





More information about the Squeak-dev mailing list