I had some old code lying around from 7.2 and just decided to test it and it 
failed miserably. I wrote a few different reproductions, mainly around using 
Port.bind() and .set_accept_callback() trying to get things to work. Basically:

Stdio.Port mainsock;

class Connection() {…}

void accept_callback {…}

int main() { … mainsock->set_accept_callback(accept_callback); ... }

—

Attempt to call the NULL-value
Unknown program: 0(/main()->accept_callback)
main.pike:53: /main()->main()


I’ve tried scoping it all into a subclass called from main and end up with 
roughly the same:

Attempt to call the NULL-value
Unknown program: 0(/main()->Server()->accept_callback)

I’m sure I’m just failing at some basic syntax holdovers trying to get back to 
Pike. Any suggestions?

Reply via email to