braceless with statements

Dr Machine Code jckj33 at gmail.com
Fri Nov 12 19:47:15 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!!! :)

what's wrong with them?


More information about the Digitalmars-d mailing list