braceless with statements
Stanislav Blinov
stanislav.blinov at gmail.com
Fri Nov 12 17:45:05 UTC 2021
On Friday, 12 November 2021 at 15:50:19 UTC, Stefan Koch wrote:
> On Friday, 12 November 2021 at 15:03:33 UTC, Ogi wrote:
>> On Friday, 12 November 2021 at 10:55:21 UTC, Stefan Koch wrote:
>>> [...]
>>
>> I’m missing the point. Why using a struct to add some
>> variables? At first I thought that you want to shadow already
>> existing variables but this is prohibited in D and thank God
>> for that.
>
> The point is to inject member functions or variables from a
> struct or class.
> it saves some typing.
Or enums. Enums. ENUMS!!! :)
More information about the Digitalmars-d
mailing list