develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [ID 20010703.002] [5.6.2-to-be] PerlIO is EVIL

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
July 9, 2001 01:11
Subject:
Re: [ID 20010703.002] [5.6.2-to-be] PerlIO is EVIL
Message ID:
20010709081013.645.6@bactrian.ni-s.u-net.com
Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
>On Fri, Jul 06, 2001 at 01:46:05PM +0100, Nick Ing-Simmons wrote:
>> >And the current state of FD should have been queried when PerlIO is
>> >created (may be this is done already?).
>> 
>> Querying the state needs Configure-oid probing to see how the CRTL flags 
>> that state.
>
>No need to Configure.  There is win32ish.h etc.

It is Configure-oid - because Borland, VC++ and Mingw32 all have different 
header files - so you at least need a 3-way #ifdef nest.

>
>> There isn't a clean API. Switching modes other than 
>> just-after-open is not reliable on most CRTLs.
>
>Existence of non-reliable CRTLs should not make it not work anywhere.

Agreed.

>
>Ilya
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About