Type expressions for sizeof and alignof #56
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instead of using the function syntax for
sizeof(T)
a special syntax liketype(type_expression).size
can be used. This expressions can be then extended with further properties likealignment
without introducing new keywords into the grammar.