#264: Add experimental method stdhandle to the interpreter pmc
----------------------+-----------------------------------------------------
Reporter: NotFound | Owner: NotFound
Type: feature | Status: new
Priority: normal | Milestone:
Component: core | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Comment(by allison):
The second implementation is reasonable, but the name 'stdhandle' is
awfully vague. Given that there are always exactly 3 filehandle pmcs that
can be set and retrieved this way, it makes more sense to add meaningful
method names like 'setstderr' and 'getstdout' to ParrotInterpreter and
eliminate the magical integer argument.
The methods can all call the same function in src/io/api.c, named
something verbose like Parrot_io_access_standard_handle (our C coding
standards dictate longer meaningful names).
Allison
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/264#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets