petdance/scratch — Issue #1136: Hash or by-string interface to interp object / interpinfo / sysinfo
Author: petdance
Created: 2011-11-01 05:39:20+00:00
State: open
Labels: feature, Pri-normal, Sev-medium

See http://irclog.perlgeek.de/parrot/2009-12-18#i_1850474 for details, but basically I would like an NQP- and introspection-friendly interface to sysinfo, interpinfo, and the object returned by getinterp.
Right now, you must index these three with magic integers; this is hidden somewhat through the use of PASM macro constants, but these are not available to NQP or other HLL code.

In addition, it is not possible to cleanly introspect these to find extensions (such as special sysinfo values available only on certain OSen).

An iterable string-keyed hash interface would probably work well for this task.

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