Substitute for routine_id?

new topic     » topic index » view thread      » older message » newer message
? plustwo(6) 
? routine_id("plustwo") 
 
function plustwo(integer x) 
return x+2 
end function 

The first line prints 8, as you would expect the second prints -1, because it can't see forward. As a result, call_back also fails:

This causes much typing and moving functions around into awkward places when using EuGTK.

Is there some way to write a substitute for

call_back(routine_id("foo")) 

that will be able to 'see' forward functions?

Or some way to look thru the registry of function names?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu