property syntax strawman

Zhenyu Zhou rinick at gmail.com
Sun Aug 2 05:23:13 PDT 2009


Walter Bright Wrote:
> One way is to simply add a "property" attribute keyword:
> 
>    property bool empty() { ... }
>    property void empty(bool b) { ... }
> 
> The problem is that:
> 
> 1. there are a lot of keywords already
> 2. keywords are global things

Have you thought about reusing existing keywords?
like "in" and "out"




More information about the Digitalmars-d mailing list