On Tue, 4 Nov 2003, Melvin Smith wrote: > At 08:32 AM 11/4/2003 +0100, Leopold Toetsch wrote: > >Melvin Smith <[EMAIL PROTECTED]> wrote: > > > > > op invoke(STR, INT) > > > PMC sub > > > if($2 == 0) { > > > sub = lookup $1 > > > $2 = sub # store the ref in the immediate data of the instruction > > > >This doesn't really work: > >- byte-code is readonly, if mmap()ed and when running function core or > > CGoto > > It doesn't have to be. Neither mmap() nor computed goto requires > the bytecode to be readonly. Also it should be possible to execute > readonly bytecode and detect when we are doing so.
Right, but I do. (As does threading) There are better ways to do method caches, I think. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk