Is it intended that gob-encoding a pointer to an integer with value equal
to zero decodes as a nil pointer? I was expecting to get back a non-nil
pointer to an integer with value zero.

https://play.golang.org/p/UUN0UFEeIN

I understand that gob omits zero values but my understanding was that a
non-nil pointer was not a zero value.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to