mental / rydia.net wrote:
> Quoting Peter Hickman <peter / semantico.com>:
> 
> 
>> Not really that odd, "a Unix like environment" and "unixy 
>> behaviour" could mean anything. The windows command shell is "unix 
>> like" for some value of /like/ that approaches zero.
> 
> 
> Precisely.  Tests for specific platforms are almost worthless -- you 
> want to test for specific features or behaviors instead.
OK, how do we test that win32ole and winapi are valid choices for cygwin 
and mingw?
Up to which point can the application figure out things for itself and 
when do we start writing code like

if (win32? && cygwin? && mingw?)
	require 'win_optimized'
else
	require 'properly_done'
end

I wouldn't mind a Plattform module or class, even if it is incomplete, 
since most of the time the incopatability culprit is Windows (and I am 
thinking mostly of fork and how I miss it) and the choices there are finite.
Cheers,
V.-

-- 
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.