Properties: a.b.c = 3
Denis Koroskin
2korden at gmail.com
Wed Jul 29 07:42:21 PDT 2009
On Wed, 29 Jul 2009 18:36:07 +0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Kagamin wrote:
>> Andrei Alexandrescu Wrote:
>>
>>> Kagamin wrote:
>>>> Andrei Alexandrescu Wrote:
>>>>> The question is very simple: given that we're used with a
>>>>> specific semantics for a.b.c = 3, how can we address the fact
>>>>> that the semantics of this familiar operation is so different
>>>>> (and likely so useless) when properties replace fields?
>>>> You're solving problems that never came to life. Well... only as
>>>> syntetic examples.
>>> IMHO it's quite the contrary, a.b.c = 3 is a very simple and
>>> concrete problem that emphatically shows we haven't gotten
>>> properties up to snuff.
>> Never saw this problem in C#.
>
> Of course you didn't. This is because C# doesn't have it - their structs
> can't define properties.
>
> Andrei
I believe you can still return a struct from an object via property.
More information about the Digitalmars-d
mailing list