Struct fields and properties as alias members

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Dec 8 17:30:35 UTC 2021


On Wed, Dec 08, 2021 at 05:21:49PM +0000, Ben Jones via Digitalmars-d-learn wrote:
[...]
> I considered just having a `ref int` parameter, but I didn't think
> that would work if I was actually calling a property function, rather
> than just modifying a struct member.
[...]

Why not pass the entire struct by ref?


T

-- 
Who told you to swim in Crocodile Lake without life insurance??


More information about the Digitalmars-d-learn mailing list