property / getProperty() / setProperty()
Jarrett Billingsley
jarrett.billingsley at gmail.com
Sat Aug 1 09:27:46 PDT 2009
On Sat, Aug 1, 2009 at 12:21 PM, Robert Jacques<sandford at jhu.edu> wrote:
> On Sat, 01 Aug 2009 11:56:23 -0400, Jarrett Billingsley
> <jarrett.billingsley at gmail.com> wrote:
>>
>> 1. You can no longer call functions as properties that were never
>> intended to be (writeln = 4; goes away).
>
> *sigh* writeln = 4 doesn't compile and hasn't for a while. It would be nice
> if the examples were valid code.
I'm a D1 user. It compiles in D1, because writeln (or writefln) is
defined as a normal non-templated function.
Here, have this instead:
void foo(int){}
foo = 5;
More information about the Digitalmars-d
mailing list