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:
Dan Sugalski
Date:
November 29, 2000 06:39
Subject:
Re: The external interface for the parser piece
Message ID:
5.0.1.4.0.20001129093609.02450ec0@24.8.96.48
At 10:42 AM 11/29/00 +0000, Nick Ing-Simmons wrote:
>Dan Sugalski <dan@sidhe.org> writes:
> >At 07:03 PM 11/28/00 +0000, Tom Hughes wrote:
> >>In message <5.0.1.4.0.20001127170630.024481b0@24.8.96.48>
> >>           Dan Sugalski <dan@sidhe.org> wrote:
> >>
> >> > The third parameter is the flags parameter, and it's optional. If 
> omitted
> >> > or set to PERL_CHAR_SOURCE, the second parameter is treated as a 
> standard
> >> > null-terminated string. If set to PERL_COUNTED_SOURCE, the second 
> parameter
> >> > is treated as if it points to a stream of bytes, where the first 
> four are
> >> > the length of the source to be read followed by the source. If set to
> >> > PERL_FILE_SOURCE it's assumed to be a FILE *, while if set to
>
>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.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


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