The problem with @properties in D

Mehrdad wfunction at hotmail.com
Mon Dec 12 17:57:17 PST 2011


On 12/12/2011 4:52 PM, Steven Schveighoffer wrote:
> On Mon, 12 Dec 2011 19:42:48 -0500, Jonathan M Davis 
> <jmdavisProg at gmx.com> wrote:
>
>> -property makes it so that properties must be used like variables and 
>> non-
>> property functions cannot be. In theory, that will become the default 
>> behavior
>> of the compiler eventually, but we couldn't enable it immediately due 
>> to a
>> combination of bugs with @property and the fact that it would break 
>> code. For
>> now, people can build with -property to make sure that their code uses
>> properties properly.
>
> To clarify, Jonathan is talking about using the -property command line 
> switch for dmd.
>
> -Steve
Oh shoot, I hadn't heard of that switch. That's awesome, thanks!



More information about the Digitalmars-d mailing list