`ref T` should be a type!!

Timon Gehr timon.gehr at gmx.ch
Wed Apr 3 20:36:33 UTC 2019


On 03.04.19 21:56, Rubn wrote:
> On Tuesday, 2 April 2019 at 07:58:21 UTC, Walter Bright wrote:
>> On 4/1/2019 5:20 PM, Rubn wrote:
>>> Let's put it this way, is const a type?
>>
>> No. It's a "type qualifier".
> 
> Enough so that it is called a storage class>

Syntactically, it is both. However, annotating a variable with `const` 
will apply the type qualifier to its type without affecting how it is 
stored.

> in the DMD source code.

Check out mtype.d.


More information about the Digitalmars-d mailing list