im usually pretty cool with C but what the actual hell is the function cast syntax

Follow

@wallhackio the purrinciple C type declarations were founded on was trying to make them look such that ”the rest of this type expression in C code would create a value of the type at the start of this type expression”. so int *, the expression fur “pointer to int”, is saying “the syntax * applied to this value will lead to a result in the int type”

unfurtunately, due to the necessities of unambiguous parsing, this schema did not work well fur functions

· Edited · · 0 · 0 · 1
Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.