Re: The external interface for the parser piece

[email protected] (Dan Sugalski) Wed, 29 Nov 2000 09:38:44 -0500
Newsgroups perl.perl6.internals.api.parser
Message-ID <[email protected]>
At 10:42 AM 11/29/00 +0000, Nick Ing-Simmons wrote:
>Dan Sugalski <[email protected]> writes:
> >At 07:03 PM 11/28/00 +0000, Tom Hughes wrote:
> >>In message <[email protected]>
> >>           Dan Sugalski <[email protected]> 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
[email protected]                         have teddy bears and even
                                      teddy bears get drunk