Well, I had that first. Then I thought that this should be taken care of by the compiler and the prototypes. So, you're saying that the compiler doesn't use the prototypes?
Sure, but you can always anonymize a function:
function f=myobject->some_function; ... f(something);
here the type of the function isn't saved, and it becomes function(mixed...:mixed|void), so the compiler can't check the types.
If you call a pike function this way, there is no disaster. But if you call a C function, it has to check everything. A .cmod-made file does that (I think), but a C hardcore module has to do it itself (get_all_args is nice then).
/ Mirar
Previous text:
2004-07-02 20:42: Subject: Re: Two fd_boxes, same FD (Re: Drowning in the Shuffler (SEGV))
Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
No, that was a real bug.
Now, if everyone would proofread 40 lines every day, Pike would soon be bugfree :-).
Btw, you forgot to check the argument in take_fd. I fixed that.
Well, I had that first. Then I thought that this should be taken care of by the compiler and the prototypes. So, you're saying that the compiler doesn't use the prototypes? -- Sincerely, srb@cuci.nl Stephen R. van den Berg (AKA BuGless). E-mails should be like a lady's skirt: Long enough to cover the subject, and short enough to be interesting.
/ Brevbäraren