[svn:parrot] r36545 - trunk/docs/book

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 10 17:13:59 UTC 2009


On Tue, Feb 10, 2009 at 05:02:28PM +0000, whiteknight at svn.parrot.org wrote:
> +Filehandle PMCs have a number of methods
> +that can be used to perform various operations. 

Perhaps surprisingly, none of these methods are mentioned in pdd22:

> +  $P0.'isatty'()
> +  $P0.'is_closed'()
> +  $P0.'readline_interactive'()
> +  $P0.'readall'()
> +  $P0.'flush'()
> +  $P0.'puts'()
> +  $P0.'eof'()

I noticed this when working on pbc_to_exe, because I was scanning
pdd22 to find out the "proper" way to check for EOF, and couldn't
find any mention of it in the PDD.  :-)

This line has a typo:

> +  $P0.'buffer_tpe'()

Also, many of the method invocations in PDD22 use the 
old C< $P1.method() > syntax, and I think that PIR now 
requires us to use C< $P1.'method'() > instead.

Pm


More information about the parrot-dev mailing list