Poll: do you use @property semantics?
Dom DiSc
dominikus at scherkl.de
Sat Oct 1 20:34:44 UTC 2022
On Saturday, 1 October 2022 at 16:50:24 UTC, rikki cattermole
wrote:
> On 02/10/2022 3:12 AM, Dom DiSc wrote:
>> On Friday, 30 September 2022 at 13:30:31 UTC, razyk wrote:
>>>
>>> What '@property' gains or should gain over '// property'?
>>
>> It gives you control over the access to a member
>> - you can read it (if there is a getter)
>> - you can write it (if there is a setter)
>> - you can apply operations on it that both read and write it
>> (like ++ if there is both a getter and a setter)
>> - you cannot get its address (use function or variable if you
>> want this)
>
> Important to note that none of these things actually apply to
> @property.
Yup. But the question was what it SHOULD gain over a pure comment.
And the above is what I expect it to provide.
More information about the Digitalmars-d
mailing list