At 07:13 PM 10/24/2001 -0700, Brent Dax wrote: >Espen Harlinn: ># Here is just a proposal: ># ># 1. Place os neutral code in one directory ># 2. place os dependant code in platform specific directories > >What about little inline things? > >AUTO_OP sleep(i|ic) { > #ifdef WIN32 > Sleep($1*1000); > #else > sleep($1); > #endif >}
No. For things like this, we switch over from sleep to Parrot_sleep, and have the win32.c platform-specific code do what it needs to. That's more or less what we've done with Perl 5, to varying degrees of success. Not, mind, that sleep's a good example, since the 'real' sleep will really be a "do nothing but process events for the next x seconds" call, but that's a separate issue. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk