You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a way to reach the "inner" function for a method declared with @attr.
So e.g. if we have
@attr Any functionbla(x::Int)
X
Y
Z
end
then it would be nice if there was a way to call the code X ; Y; Z in the definition of bla, while bypassing the attribute based caching of the return value.
This is useful so that one can run e.g. @code_warntype on it, or generally invoke it while bypassing the caching logic which @attr inserts around it.
The text was updated successfully, but these errors were encountered:
There is of course __compute_bla__(x::Int) that does the internal computation of the @attr macro there. We could add something like this to the @attr docstring, and maybe add a note that this construction may change between different AA versions, so people don't use it in normal code.
It would be nice if there was a way to reach the "inner" function for a method declared with
@attr
.So e.g. if we have
then it would be nice if there was a way to call the code
X ; Y; Z
in the definition ofbla
, while bypassing the attribute based caching of the return value.This is useful so that one can run e.g.
@code_warntype
on it, or generally invoke it while bypassing the caching logic which@attr
inserts around it.The text was updated successfully, but these errors were encountered: