routine_id and different files

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu