Omittable parens is an evil

Mike vertex at gmx.at
Sat Jul 19 13:10:01 PDT 2008


On Sat, 19 Jul 2008 21:42:22 +0200, Nick Sabalausky <a at a.a> wrote:

Hey - I like that implicit value declaration very much. However, there  
needs to be a way to declare pseudo properties (without the implicit  
value), so I'd add an initializer to the property:

class foo
{
     property int bar
     {
         value = void; // this is the initial value; void means that there  
is no implicit value
         // here be getters/setters
     }
}

Maybe something like that?

-Mike

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list