braceless with statements
Stefan Koch
uplink.coder at googlemail.com
Fri Nov 12 15:50:19 UTC 2021
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.
More information about the Digitalmars-d
mailing list