On Mon, Sep 26, 2016 at 5:50 AM, jw3126 <[email protected]> wrote:
> 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?

Not currently.

Reply via email to