On 4/23/07, Matt Diephouse <[EMAIL PROTECTED]> wrote:
Looks like either (a) you forgot to attach the patch or (b) RT ate it.
Care to try again? :)
Oops - looks like the former. Here we go...
--
Alek Storm
--- /dev/null 1994-07-17 23:46:18.000000000 +0000
+++ ./test.pir 2007-04-20 17:56:48.000000000 +0000
@@ -0,0 +1,17 @@
+.sub main :main
+ .local pmc integer, c_null, class, obj
+ integer = new "Integer"
+ c_null = integer.'foo'()
+ class = newclass "Foo"
+ obj = new "Foo", c_null
+.end
+
+.namespace ["Foo"]
+.sub 'init' :vtable :method
+ print "init\n"
+.end
+
+.sub 'init_pmc' :vtable :method
+ .param pmc value
+ print "init_pmc\n"
+.end
Index: src/pmc/integer.pmc
===================================================================
--- src/pmc/integer.pmc (revision 18290)
+++ src/pmc/integer.pmc (working copy)
@@ -1268,6 +1268,11 @@
if (info->extra_flags == EXTRA_IS_NULL)
PMC_int_val(SELF) = io->vtable->shift_integer(INTERP, io);
}
+
+ PCCMETHOD void foo() {
+ PCCRETURN(PMC* NULL);
+ }
+
}
/*