On Thu, 13 Oct 2016 08:27:57 -0700 (PDT)
adonovan via golang-nuts <golang-nuts@googlegroups.com> wrote:

> Yes, the memory representation of the zero value of any type consists
> only of zero bytes.

A nitpick, but recalling the famous comp.lang.C FAQ, I'd say the
assumption that a NULL (than is, "officially invalid") pointer consists
of zero bytes is wrong: on certain H/W arches the memory address 0 is
valid and such an "officially invalid" pointer's value may well be
different from 0.

Since the zero value of a pointer, I beleive, is defined to point to no
valid object, this rule applies to pointers.

I think that ATM Go does not support any such "weird" architecture but
still I'd be easier with stating "any type" :-)

> However, this is an implementation detail and not a consequence of
> the spec.

This is surely true, I concur.

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