Oh, and while I have my fingers crossed, I may as well throw in the
original test patch as well. I'll let these messages go to hell
together.
Urk! Except I used stupid filenames, and swapped the attachments. So
this attachment is actually the patch. Need more sleep.
? src/py_func.str
Index: src/key.c
===================================================================
RCS file: /cvs/public/parrot/src/key.c,v
retrieving revision 1.51
diff -u -r1.51 key.c
--- src/key.c 8 Jul 2004 10:19:11 -0000 1.51
+++ src/key.c 17 Aug 2004 17:00:08 -0000
@@ -357,6 +357,10 @@
case KEY_pmc_FLAG | KEY_register_FLAG:
reg = interpreter->pmc_reg.registers[PMC_int_val(key)];
return VTABLE_get_string(interpreter, reg);
+ case KEY_integer_FLAG:
+ return string_from_int(interpreter, PMC_int_val(key));
+ case KEY_integer_FLAG | KEY_register_FLAG:
+ return string_from_int(interpreter,
interpreter->int_reg.registers[PMC_int_val(key)]);
default:
case KEY_pmc_FLAG:
return VTABLE_get_string(interpreter, key);