Martin Bähr wrote:
On Mon, Dec 20, 2004 at 02:27:28PM +0100, Kaos wrote:
replacing the code vars->exposed = .ExposedInterface(); with this: vars->exposed = ((program) "ExposedInterface.pike")(); solved it.. can't really see why it should make any difference though... ?
isn't the difference here that the first is evaluated at compile time, while the second is done at runtime?
greetings, martin. ps: i am half expecting to be wrong, so don't hesitate to correct me
Yes, and my statement was badly expressed. I know the latter is evaluated first at runtime, what I didn't (and still don't) understand is why it would make any difference since the program in question (ExposedInterface) has no outside refernces at all. So by not having it at all (or refed during runtime) works, but resolving it during compiletime results in unrecoverable error (for later referred modules...) doesn't quite make sense to me.. The problem still exists even if Exposed.. is left as an empty file!
I would like to have a crack at this, since it affects my work in a great deal, but feels it would take a lot of time and require extensive help from more pike-internals knowledgable people.
//K