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
julia> @memoize f(::Int) = 1;
julia> f(1)
ERROR: MethodError: no method matching var"##f_unmemoized"(::Nothing)
The function `##f_unmemoized` exists, but no method is defined for this combination of argument types.
Closest candidates are:
var"##f_unmemoized"(::Int64)
@ Main REPL[2]:1
A more realistic example is using Val:
julia> @memoize g(::Val{N}) where N = N;
julia> g(Val(1))
ERROR: MethodError: no method matching var"##g_unmemoized"(::Nothing)
The function `##g_unmemoized` exists, but no method is defined for this combination of argument types.
Closest candidates are:
var"##g_unmemoized"(::Val{N}) where N
@ Main REPL[4]:1
EDIT: Underscores don't work, either:
julia> @memoize h(_::Val{N}) where N = N
ERROR: syntax: all-underscore identifiers are write-only and their values cannot be used in expressions around /usr/local/julia-depot/packages/Memoize/12ANR/src/Memoize.jl:62
I'm using Memoize v0.4.4.
The text was updated successfully, but these errors were encountered:
Simple example:
A more realistic example is using
Val
:EDIT: Underscores don't work, either:
I'm using Memoize v0.4.4.
The text was updated successfully, but these errors were encountered: