This is even more interesting,
Regexp.pmod/Module.pmod: | class Foo | { | inherit Regexp.Builtin; | }
| > indices(Regexp.Foo); | (2) Result: ({ /* 1 element */ | "_SimpleRegexp" | }) | > indices(Regexp.Builtin); | (3) Result: ({ /* 6 elements */ | "replace", | "`()", | "split", | "SimpleRegexp", | "match", | "_SimpleRegexp" | })
Er... Okey?
/ Mirar
Previous text:
2003-09-24 11:30: Subject: foo
I already succeeded moving it to Regexp.Builtin, using PIKE_MODULE_INIT(Regexp.Builtin). But I can't make a compat Regexp module.pmod inheriting it...
/ Mirar