Writing a static function

I do not understand the dollar sign notation. When I try to execute $a(), I get the error:

ERROR: syntax: "$" expression outside quote around /Users/erlebach/src/2022/rude/giesekus/functor_tst.jl:118
Stacktrace:
 [1] top-level scope
   @ ~/src/2022/rude/giesekus/functor_tst.jl:118

Thanks.

The dollar signs are part of the usage of the @btime macro, see Manual ยท BenchmarkTools.jl.

To run the same thing outside of the macro, just remove the dollar signs.

1 Like

Thanks. I remember now. The last time I used this feature was 3 years ago!