Search⌘ K

typeof Varieties

Explore the three typeof varieties in D programming: typeof(this), typeof(super), and typeof(return). Understand how these help handle types in both template and non-template code, enabling clearer and more efficient function definitions and class hierarchies.

We'll cover the following...

In some cases, the generic nature of templates makes it difficult to know or spell out certain types in the template code. The following three special typeof varieties are useful in such cases. ...