Actually the real call is ({ i, o })(fun) and it could be that fun be 0 in some cases but it could be another thing too.
How does it matter what fun is? Regardless it'd try to call `() in the two objects, and it doesn't exist.
Anyway, the problem is that I made mega_apply a little more picky about trying to call things that aren't callable. That made call_function more picky which in turn made map more picky. I'll fix map. Can you check in a test case with this?
/ Martin Stjernholm, Roxen IS
Previous text:
2004-04-06 14:29: Subject: Re: Cannot call undefined lfun
Martin Nilsson (provokatör) @ Pike (-) developers forum wrote:
What are you trying to do? ({ i, o })(0); ?
Actually the real call is ({ i, o })(fun) and it could be that fun be 0 in some cases but it could be another thing too. If it's 0, it closes the port. But with 7.2 it didn't produce such an error when fun is 0.
/ Martin Nilsson (provokatör)
Previous text:
2004-04-06 14:10: Subject: Cannot call undefined lfun
Hi,
I got a problem with Pike 7.5 that I don't have with older Pike (at least on 7.2):
Pike v7.5 release 23 running Hilfe v3.5 (Incremental Pike Frontend)
object i = Stdio.Port(8080), o = Stdio.Port(8081); i;
(1) Result: Stdio.Port(ANY:8080)
o;
(2) Result: Stdio.Port(ANY:8081)
Array.map(({ i, o }), 0);
Cannot call undefined lfun `(). HilfeInput:1: HilfeInput()->___HilfeWrapper()
Is it a bug in Pike ?
/ David
/ Brevbäraren
/ Brevbäraren