Allocation during access to "typed" field of mutable struct

Function is an abstract type. Use

struct Dummy{F}
  f::F
end
1 Like