What is Nostr?
Wolf480pl /
npub1704…t88d
2025-02-15 17:03:33
in reply to nevent1q…9hhe

Wolf480pl on Nostr: nprofile1q…pa33k tedu so looks like `!p` is equivalent to `(0 == p)` and I'm ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq3t0vxvx8llrdglujal9hh93mtnl7wac0mxqd7xtdyryc4per8q4qhpa33k (nprofile…a33k) tedu (nprofile…pt5e)

so looks like `!p`
is equivalent to `(0 == p)`
and I'm guessing it casts the zero to the type of p?
But zero cast to a pointer type is a null pointer, and all null pointers are equal, so this should be fine?

But if you tried to cast a null pointer back to an integer, you might not get a zero (eg. on an arch that uses tagged pointers) ?

At least that's my read on this, but I haven't read the whole standard...
Author Public Key
npub170403ynslsp4tn32j8tfhjn3cdq2pgut0jpnhrlcxl524gxf36pqput88d