DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 5, 2022 17:28 UTC (Thu) by nybble41 (subscriber, #55106)In reply to: DeVault: Announcing the Hare programming language by foom
Parent article: DeVault: Announcing the Hare programming language
A further consequence of enabling this flag is that you are no longer programming in ISO C:
> An integer constant expression with the value 0, or such an expression cast to type void *, is called a null pointer constant. If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer, is guaranteed to compare unequal to a pointer to any object or function.
… or C++:
> A null pointer constant is an integer literal (5.13.2) with value zero or a prvalue of type std::nullptr_t. A null pointer constant can be converted to a pointer type; the result is the null pointer value of that type (6.8.2) and is distinguishable from every other value of object pointer or function pointer type.
… since a null pointer can no longer be distinguished from a pointer to an object or function.
