Fixing const arrays

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Dec 12 08:09:02 PST 2011


On 12/12/11 9:29 AM, Jakob Ovrum wrote:
> On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote:
>> On 12/12/11 9:07 AM, Jakob Ovrum wrote:
>>> If the programmer sees just "r.save", he
>>> doesn't know whether it's a field or a property, and he shouldn't need
>>> to know, it should be fast and cheap, and return a consistent value. As
>>> far as I know, this isn't always true for save
>>
>> Why? Save does behave like a field for the vast majority of structs.
>>
>> Andrei
>
> But save is an abstract interface function, its signature should reflect
> all possible implementations.

Same goes for many properties.

Andrei


More information about the Digitalmars-d mailing list