1.

What Is Tail Const?

Answer»

<P>Tail const is the COMPLEMENT of head const - everything reachable from the const type is ALSO const except for the top level.

For example:

tailconst(int**) p;

WOULD be read as p being a: mutable pointer to const pointer to const int. Head const combined with tail const yields transitive const. D doesn't have tailconst (the keyword is there just for illustrative purposes) as a distinct type constructor.

Tail const is the complement of head const - everything reachable from the const type is also const except for the top level.

For example:

tailconst(int**) p;

would be read as p being a: mutable pointer to const pointer to const int. Head const combined with tail const yields transitive const. D doesn't have tailconst (the keyword is there just for illustrative purposes) as a distinct type constructor.



Discussion

No Comment Found