Re: eof opcode

2004-11-29 Thread brian wheeler
Fair enough.  However, shouldn't the rest of the opcodes with an IO
object as their parameter be methods as well?  Its not a lot of ops, but
it would trim down the core a bit.

Brian


On Thu, 2004-11-25 at 08:00 +0100, Leopold Toetsch wrote:
 Brian Wheeler [EMAIL PROTECTED] wrote:
  I noticed a hole in the io.ops where the PIO stuff wasn't covered.  This
  patch creates an eof opcode which checks for end of file.
 
 Please just use the eof method of the PIO object:
 
   $I0 = $P0.eof()
 
 leo
-- 
brian wheeler [EMAIL PROTECTED]



Re: eof opcode

2004-11-29 Thread Dan Sugalski
At 12:23 PM -0500 11/29/04, brian wheeler wrote:
Fair enough.  However, shouldn't the rest of the opcodes with an IO
object as their parameter be methods as well?  Its not a lot of ops, but
it would trim down the core a bit.
They should -- it'll make it easier to abstract things out later when 
people start wanting to do bizarre things with pseudo-filehandles.

On Thu, 2004-11-25 at 08:00 +0100, Leopold Toetsch wrote:
 Brian Wheeler [EMAIL PROTECTED] wrote:
  I noticed a hole in the io.ops where the PIO stuff wasn't covered.  This
  patch creates an eof opcode which checks for end of file.
 Please just use the eof method of the PIO object:
$I0 = $P0.eof()
--
Dan
--it's like this---
Dan Sugalski  even samurai
[EMAIL PROTECTED] have teddy bears and even
  teddy bears get drunk


Re: eof opcode

2004-11-24 Thread Leopold Toetsch
Brian Wheeler [EMAIL PROTECTED] wrote:
 I noticed a hole in the io.ops where the PIO stuff wasn't covered.  This
 patch creates an eof opcode which checks for end of file.

Please just use the eof method of the PIO object:

  $I0 = $P0.eof()

leo