How to set a property in the current module

I think this is what you want?

@eval $sym = $val