On Thu, Jun 20, 2024 at 12:28 PM Oliver Eikemeier <eikeme...@fillmore-labs.com> wrote:
> It mentions “pointers” (plural) to zero-sized variables, but for this > behavior it is sufficient when only one pointer derives from a pointer to a > zero-sized variable, as demonstrated in the example below. The plural is there because the specification discusses all such pointers, not a particular case. The wording is IMO correct and clear. All/any pointers (plural) to zero sized objects may produce any/unpredictable result in comparison operations. Relying on the outcome is a bug, because the specs explicitly say otherwise. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-W8sYn56qRwX9ijEe9eK5bBxKCf_M2tX4_pxPMrWgi2hQ%40mail.gmail.com.