getAttr method

Christopher Wright dhasenan at gmail.com
Fri Feb 1 19:35:27 PST 2008


Jarrett Billingsley wrote:
> "downs" <default_357-line at yahoo.de> wrote in message 
> news:fo0i97$1cla$1 at digitalmars.com...
> 
>> auto generator = stackthread = (void delegate(int) yield) ...
> 
> In this code, I'm mostly concerned with your (ab)use of the property syntax 
> to call functions which aren't properties.  This looks like assignment, but 
> sure as heck doesn't have the semantics thereof.
> 
> You do realize that writing obtuse, unreadable code is not something to be 
> proud of? 

It is creative and clever. You can be proud of an unusual ability to 
write such code, but not if you are incapable of writing readable code.



More information about the Digitalmars-d mailing list