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:
Tom Hughes
Date:
November 29, 2000 06:46
Subject:
Re: The external interface for the parser piece
Message ID:
yekhf4q4z5j.fsf@elva.uk.cyberscience.com
In message <5.0.1.4.0.20001129093609.02450ec0@24.8.96.48>
        Dan Sugalski <dan@sidhe.org> 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.

That shouldn't matter so long as there's a simple way to create
a PerlIO * from a FILE * or whatever.

That's probably something that needs to be specific to different
language bindings - if you're embedding perl in C++ you probably
have an iostream, and if you're embedding in Java you'll have a
Java stream object. In each case you'll want an easy way to create
a PerlIO object from that.

Tom

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu


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