On Sun, Jul 9, 2017 at 12:30 AM, Dave Cheney <d...@cheney.net> wrote:
> As your using the unsafe package your doing things which are not > considered safe by the lanaguge so only imprecise interpretations are > possible. My interpretation is, assuming that next words after p in memory > are zeroed the you have effectively a slice that points to a backing array > at *p, and a length and capacity of zero. > ah, that makes sense. Thanks, Dave. > > If the words following p were not see, you'd have some fun memory > corruption bugs to chase down. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/tTmhJZTz3no/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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.