routine_id and different files
- Posted by kobi May 03, 2012
- 1093 views
I have a few include files, and wanted to use routine_id from an included function.
when I pass the function name, as an argument, it doesn't work.
it only works when both the inner function and the "immediate" one are in the same namespace, (or same file?)
Is that a bug, or expected behaviour?
include seqops.e function inc(integer num) return num+1 end function ? map({1,2,3},"inc") -- works only when map is in the same file. map uses routine_id.
Thanks, kobi