petdance/scratch — Issue #523: [RFC] StringHandle interface
Author: petdance
Created: 2011-11-14 06:01:05+00:00
State: open
Labels: core, Pri-normal, rfc, Sev-medium

There some points in the StringHandle pmc that needs clarification:
- Read/Write mode: Must it works the same as FileHandle? Several tests use read methods in a StringHanlde opened for writing. IMO will be better to have methods to get/set the string content, use the get_string/set_string/native vtable functions, or both, and have the read methods throw exceptions when not opened for read.

- Mode when reopened without second argument: must use the flags used on the previous open, or use the 'r' default? Several tests assume the second, but works only because of the first issue.

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