Hello .NET, D Here Calling

Christopher Wright dhasenan at gmail.com
Tue Dec 23 16:10:43 PST 2008


Daniel de Kok wrote:
> Maybe, but in the setter case you can explicitly see what is going on. 
> Would you expect something that looks like a variable assignment to 
> throw an exception or to perform validation?

If a field should be validated, I want it to be validated every time I 
assign to it. Otherwise I get an exception at some random time, and I 
have to do a lot of work in order to find out where I set a bad value.



More information about the Digitalmars-d mailing list