DEV Community

Discussion on: Expression-Oriented Programming in C: The FMT Macro

Collapse
 
gabrielfallen profile image
Alexander Chichigin

Do I get it right that these restrict and array length annotations are just promises from a programmer and compiler don't and can't check their actual validity?

Thread Thread
 
hirrolot profile image
Hirrolot

Sort of. Formally, they are promises, though some sane compilers can check a passed array length: hamberg.no/erlend/posts/2013-02-18....

Thread Thread
 
gabrielfallen profile image
Alexander Chichigin

Cool! Thanks. 😃