style

Lars Ivar Igesund larsivar at igesund.net
Mon May 22 03:03:59 PDT 2006


Daniel Keep wrote:

> 
> A question of my own: does anyone define the return type of the
> 'setter', and then return the value like this:
> 
> #     char[] caption(char[] value)
> #     {
> #         return _caption = value;
> #     }
> 
> I'm under the impression this is good because it allows you to chain
> assignment statements; but does anyone actually do this?
> 
> -- Daniel
> 

I believe Mango do this quite extensively.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi



More information about the Digitalmars-d mailing list