[migrated to blacksky.co.uk] on Nostr: In C, b[a] is syntactic sugar for *(b + a), you can swap the pointer and the ...
In C, b[a] is syntactic sugar for *(b + a), you can swap the pointer and the subscript and gcc will compile it without even throwing a warning (-Wall -Wextra -Wpedantic); you can use an integer literal as long as either value is an array or a pointer.
HolyC explicitly forbids this for some reason.
Published at
2024-01-01 23:23:13Event JSON
{
"id": "d058793fab661eb86eea7aa0679f62cd2d6c46ed18bfdc0d40deca06891777c3",
"pubkey": "80ee8adeda8e5da3db21e3c53e89092adbf79cadb7074e8d61ad5f759803c1c5",
"created_at": 1704151393,
"kind": 1,
"tags": [
[
"proxy",
"https://clubcyberia.co/objects/6fc4885c-0770-4d4a-b880-b4bba502030b",
"activitypub"
]
],
"content": "In C, b[a] is syntactic sugar for *(b + a), you can swap the pointer and the subscript and gcc will compile it without even throwing a warning (-Wall -Wextra -Wpedantic); you can use an integer literal as long as either value is an array or a pointer.\n\nHolyC explicitly forbids this for some reason.\n\nhttps://media.clubcyberia.co/pleroma/5d94c1ed0ab5066e94bf23f94514adc927a54b00109af61cac4d516e5aaa59f3.png",
"sig": "774bf0a1fed517083b8fa0ff014b2acec65bba047dc2f4f4c8713a789a5107eb4893d88ac4186199eb35fa84e872057714bb1ba1780bcf3afec92d6a6c7b1a0b"
}