3 ms·
> C doesn't have generics, so it has no choice but to make `sizeof` somehow special It could have used a different syntax though. Ada has a special syntax for
by MaxBarraclough 6y ago
> C doesn't have generics, so it has no choice but to make `sizeof` somehow special
It could have used a different syntax though. Ada has a special syntax for compile-time inquiries like this, so there's no way to confuse them with function calls. Ada calls these attributes.
https://en.wikibooks.org/wiki/Ada_Programming/Attributes#Language_summary_attributes https://en.wikibooks.org/wiki/Ada_Programming/Attributes#Lan...