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
I suspect it changes the interpreter/compiler heuristics in src/toplevel.c but I haven't looked in detail. And yes, ideally it would be best to be able to use let.
Is this issue related to why symbols in the @setup_workload block are visible in the package namespace? I.e. if I have the following:
module MyPackage
using PrecompileTools:@setup_workload, @compile_workload@setup_workloadbegin# these become visible in the namespace
some_variable =rand(4, 4)
b =rand(4)
temp =:U@compile_workloadbegin
some_variable * b
some_func(temp)
endendend
The variables some_variable, b, and temp are visible if a user types in MyPackage.[TAB]. I could wrap the contents of @setup_workload in a let-block and then the setup variables would no longer be in the namespace, but that feels wrong.
This was observed in #16. It would be good to understand the interaction with
let
here since ideally, it would be good to keep it.The text was updated successfully, but these errors were encountered: