Is it possible to control inline behaviour of a function purely from the 
callsite?

I have a function f and I call it at several places. At some places I want 
it to get it inlined and at others not. I do not want to touch the code of 
f at all (like adding @inline macro to it etc.).

f(...) = ...  # I do not want to touch this definition

function g(...)
    ...
    y=f(...) # inline please!
    ...
end

function h(...)
    ...
    y=f(...) # never ever inline here!
    ...
end

Is this possible?

Reply via email to