Yeah, that looks much more like what I expected too. But since I know that most of the core is written by programmers that are better than me at what they do, I usually assume that I'm doing something wrong.. ;)
/ Marcus Agehall (PacketFront)
Previous text:
2004-08-13 14:22: Subject: CMOD questions
$ ./pike -mmaster.pike lyskom_1253939.pike lyskom_1253939.pike:12:Index "Bar" not present in module "Foo". Pike: Failed to compile script: Compilation failed.
master.pike:2674: master()->_main(({"./pike","-mmaster.pike","lyskom_1253939.pike"}),({"PWD=/ home/grubba/src/Pike/7.7/build/sunos-5.8-sun4u","TZ=MET","ORACLE_SID=TEST" ,"WINDOWID=192937997","PAGER=less","LC_MESSAGES=C",,,41}))
Which is more or less what I expect.
After commenting out line 12, I however get:
$ ./pike -mmaster.pike lyskom_1253939.pike ({ /* 1 element */ "Bar" }) ({ /* 1 element */ "get_bar" })
Which shows a bug in program_indices(). Fixed:
$ ./pike -mmaster.pike lyskom_1253939.pike ({ }) ({ /* 1 element */ "get_bar" })
/ Henrik Grubbström (Lysator)