new DIP5: Properties 2
Jarrett Billingsley
jarrett.billingsley at gmail.com
Tue Jul 28 07:15:23 PDT 2009
On Tue, Jul 28, 2009 at 10:08 AM, Andrei
Alexandrescu<SeeWebsiteForEmail at erdani.org> wrote:
>
> * The syntax "foo = bar" is rewritten into "foo(bar)" IF AND ONLY IF the
> expression "auto __x = foo, __x = bar" is compilable.
// returns number of characters written
int write(...) { ... }
write = 42; // legal.
// auto x = write; declares x as int set to 0.
// x = 42; is fine.
;)
I know, I know.
More information about the Digitalmars-d
mailing list