Fixing const arrays

David Nadlinger see at klickverbot.at
Sun Dec 11 02:56:20 PST 2011


On 12/11/11 10:04 AM, Mehrdad wrote:
> On 12/11/2011 12:57 AM, Andrei Alexandrescu wrote:
>> I think you should write:
>>
>> auto copy = this.save;
>
> Ah good point, I forgot about that. Idk then.
> (You forgot the parentheses though. :P)

No, it's correct like that, save() is a @property.

Even though I recently updated Phobos to compile with -property enabled, 
I agree with Andrei here that in many cases there will be no perfect 
consensus whether a given member should be a @property or not, thus 
potentially adding an extra source of complexity, or rather annoyance.

David


More information about the Digitalmars-d mailing list