`ref T` should be a type!!
Timon Gehr
timon.gehr at gmx.ch
Wed Apr 3 20:40:22 UTC 2019
On 03.04.19 22:36, Timon Gehr wrote:
> 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
_necessarily_
> affecting how it is stored.
(But it can, e.g. static const variables will be put into the readonly
data section.)
More information about the Digitalmars-d
mailing list