Thanks. I'll try out your snippet later today.

What's confusing to me is that I tried about the same approach as yours but 
without using the sugar `=>`, and it didn't work because it failed to compile 
because the `newTimeZone` needed gcsafe proc args.

This fails: [http://ix.io/1L6u/nim](http://ix.io/1L6u/nim)

>From my discussion on gitter: 
>[https://gitter.im/nim-lang/Nim?at=5cf9d0e7f3a60a79a468a3da](https://gitter.im/nim-lang/Nim?at=5cf9d0e7f3a60a79a468a3da)

I'll then also try out this suggestion by @GULPF: 
[https://gitter.im/nim-lang/Nim?at=5cfa28266fc5846bab7808e1](https://gitter.im/nim-lang/Nim?at=5cfa28266fc5846bab7808e1)

I am failing to understand the basic requirements of how to make gcsafe procs, 
but I need to generate that offset int at run time from an outside proc. 

Reply via email to