Login
You're viewing the functional.cafe public feed.
  • Oct 6, 2026, 8:57 PM

    @javierg @icculus
    The fundamental idea was to have an "empty" pointer value. That arguably was an invention, as nearly all computing hardware makes no explicit distinction as to whether a word used as a pointer contains a valid value.
    The actual encoding was not specified. Technically, the underlying encoding still is not specified in C or C++. The languages simply require that whatever underlying encoding is used acts as a semantic value of zero.

    💬 1🔄 0⭐ 2

Replies

  • Oct 6, 2026, 9:01 PM

    @javierg @icculus
    Once the concept of an empty pointer is adopted, choosing zero for it is perhaps obvious, except in that on some early computer architectures, a pointer to actual address 0 was useful.
    The conflation of pointers with integers was not universal. They weren't even the same size on many early computers.

    💬 0🔄 0⭐ 1