Substitute for routine_id?
- Posted by irv Sep 20, 2010
- 1309 views
? 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?