Dave DeLong on Nostr: A while ago I was reworking some C code into Swift and came to a better understanding ...
A while ago I was reworking some C code into Swift and came to a better understanding of how #Swift's pointer types work. I made this flow chart to help describe how to use the types involved (with the exception of OpaquePointer, which is its own thing):
Published at
2024-01-02 23:10:38Event JSON
{
"id": "e2b32f9cc67db560794c9c016b9f5ba99e4190cdb5cf7383d18302f0b722757e",
"pubkey": "ec75b63e3a9cda85714089f8d92bf564cb2bbcf14408581463b080ec98b9e536",
"created_at": 1704237038,
"kind": 1,
"tags": [
[
"t",
"swift"
],
[
"proxy",
"https://mastodon.social/users/davedelong/statuses/111688878524219634",
"activitypub"
]
],
"content": "A while ago I was reworking some C code into Swift and came to a better understanding of how #Swift's pointer types work. I made this flow chart to help describe how to use the types involved (with the exception of OpaquePointer, which is its own thing):\n\nhttps://files.mastodon.social/media_attachments/files/111/688/878/258/887/312/original/00dc8183ef368d3d.png",
"sig": "7be4f66c133ecdecb00835b13e150a86e58a9f9426eb0d04bf9288d1717c67c6c2c26afa640f226d556b0c58f2cd1c5540f660b750e3227feaf6d89ab30e1baf"
}