D1.5 anyone?

Walter Bright newshound2 at digitalmars.com
Wed Apr 12 07:33:00 UTC 2023


On 4/12/2023 12:05 AM, Walter Bright wrote:
>  > Templates without extreme precautions and Unqual!T all around will get 
> instantiated up to 3x(!) times.
> 
> I'm not sure why `Unqual!T` exists. `cast()T` will remove all the head 
> qualifiers, no templates involved.

Oops. That is, cast()E will remove all the qualifiers from the type of E. So 
Unqual!T needs to exist. My mistake.


More information about the Digitalmars-d mailing list