petdance/scratch — Issue #310: Remove the open and close opcodes
Author: petdance
Created: 2011-11-14 05:55:37+00:00
State: open
Labels: core, deprecation, Pri-normal, Sev-medium

The open and close opcodes are redundant and since the IO ops became dynops, have subtle problems, as found by PL/Parrot:
{{{ arg count mismatch: op #1119 'open' needs 17820 given 3 }}}

http://groups.google.com/group/parrot-dev/browse_thread/thread/d99dfeabda257cf1
http://groups.google.com/group/parrot-dev/browse_thread/thread/b8f6e3f2e0f285ff

Uses of the open/close opcode can easily be changed to use the open/close methods on the File or FileHandle PMC.

Originally http://trac.parrot.org/parrot/ticket/1697