property syntax strawman

Zhenyu Zhou rinick at gmail.com
Sun Aug 2 01:15:14 PDT 2009


Walter Bright Wrote:
> but oops! That defines a field. So we came up with essentially a hack:
> 
>    bool empty{}

weird syntax

I'd rather use 

   bool empty=() { ... }
   void empty=(bool b) { ... }



More information about the Digitalmars-d mailing list