Menu

#61 Think about "static asserts"

open
None
5
2018-03-21
2018-03-21
No

An "assert" statement placed outside any procedure (i.e. at global declaration scope) can be evaluated by the compiler and error can be given if the value there is not "true". This will allow checking things like e.g. "assert sizeof(integer) == 4;" at compile time!

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.