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.

Related questions

+1 vote
asked Mar 5, 2021 in D Programming by SakshiSharma
0 votes
asked Oct 24, 2023 in JavaScript by DavidAnderson
...