Thanks... the previous **casting** version did work... but certainly had a **bad smell** to it :-). I think I'll steer clear of the **ref parameters** for now in my pure nim code... It's probably contraindicated except for mixed language interop type code??
I had tried many iterations before posting... but I missed the > `let history = history # make a non-var history so we can capture it` > **trick** Nice... and in restrospect obvious :-) I certainly apreciated the feedback from both of you. Thanks for for your patience.