develooper Front page | perl.perl6.internals.api.parser | Postings from November 2000

Re: The external interface for the parser piece

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
November 29, 2000 06:49
Subject:
Re: The external interface for the parser piece
Message ID:
20001129144938.F75302@plum.flirble.org
On Wed, Nov 29, 2000 at 09:38:44AM -0500, Dan Sugalski wrote:
> At 10:42 AM 11/29/00 +0000, Nick Ing-Simmons wrote:

> >FILE * is not a good idea. PerlIO * is fine.
> 
> The problem with that is we're potentially getting the filehandle from 
> something that isn't perl. Or so my thinking went at the time. Right now 
> I'm thinkng that I need to rethink things.

I liked Tom Huges' suggestion of 3 or so simple wrappers (which I've
deleted now, oops) because it let PerlIO make the choice between doing
something simple to open the named file, and something complicated but
fast. (and I belive Nick's p5p perlio is suggesting that PerlIO could open
a handle that sits atop the FILE *)

But on the other hand I also liked Simon Cozen's argument that it should
be easy to embed somewhere else, in which case why do we want to make
the parser have a dependency on the IO library?

Bah. Can't have them both at the same time.

Nicholas Clark

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