braceless with statements
russhy
russhy at gmail.com
Fri Nov 12 21:25:44 UTC 2021
On Friday, 12 November 2021 at 17:45:05 UTC, Stanislav Blinov
wrote:
> 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!!! :)
i still believe enums shouldn't need one to use 'with(MyEnumType)'
'with' shouldn't be an argument for "we have it at home" kind of
thing
More information about the Digitalmars-d
mailing list