Speaking of compile_file() and cast_to_program(), how does this work in pike?
Where is the caching of programs done when casting and can the caching be "undone" so that a new version of a program may be loaded?
/ Marcus Agehall (Scanian)
Previous text:
2004-04-08 13:44: Subject: Re: Can't encode value: Failed to find name of program
I get this in 7.4:
Pike v7.4 release 45 running Hilfe v3.5 (Incremental Pike Frontend)
program p = compile_file("/home/mast/foo.pike"); master()->Codec()->nameof(p);
(1) Result: "_static_modules.system"
That result is entirely bogus, so I wouldn't say that it works there.
It's not strange that the codec in 7.5 can't find the name of that program. When you use compile_file, you don't make it known to the standard resolver system. You either need to do that (say, by using a cast instead), or extend the codec to look for your program.
/ Martin Stjernholm, Roxen IS