linear cannon on Nostr: hmm. in C is it legal that two different pointers to two different types of objects ...
hmm. in C is it legal that two different pointers to two different types of objects (in this case i am thinking a function pointer vs, say, an int) could have the same value? i.e. if the architecture its running on has completely separate address spaces for those two things
im pretty sure the answer is yes but i dont remember why
Published at
2024-04-11 18:04:21Event JSON
{
"id": "d66a690bd2c919bc8732981bdc005f904e6c528ae3dc3e8f02752f927b5ae11f",
"pubkey": "8f233f38b07843acc6fc89c2c17480e60c76906eb762f00fa9c553c122c1e101",
"created_at": 1712858661,
"kind": 1,
"tags": [
[
"proxy",
"https://nya.social/notes/818ece5500c4e9f1fb50a5a7",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://nya.social/notes/818ece5500c4e9f1fb50a5a7",
"pink.momostr"
]
],
"content": "hmm. in C is it legal that two different pointers to two different types of objects (in this case i am thinking a function pointer vs, say, an int) could have the same value? i.e. if the architecture its running on has completely separate address spaces for those two things\n\nim pretty sure the answer is yes but i dont remember why",
"sig": "f235531c845943270ac6d1d8236f8274e5e8f4c562474def5a4b57eeb7c075f2d92d3ce551413a7636fd6037a3a6d6260721a4a8006fcbd2dfb2a85bfa779a33"
}