Use ref seq instead. shallow only works inside procs and not globally. Also 
it's meant for optimization only and shouldn't be relied upon to provide 
reference semantics since it may choose not to if it's more efficient not to. 
It really should only be used in the case where your copying from a var 
variable but don't plan to ever touch that var variable again so copying it by 
reference is harmless. Regardless it's probably a premature optimization in 
most cases.

Reply via email to