0 votes
in D Programming by
What Is Tail Const?

1 Answer

0 votes
by

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.

...