Any word on the return-type const syntax?

Walter Bright newshound1 at digitalmars.com
Fri Dec 7 12:39:24 PST 2007


Janice Caron wrote:
> I know there was a suggestion in the Walter/Andrei document, but has
> it been finalised?
> 
> I'm referring to the ability to define the constancy/invariance of the
> return type in terms of the constancy/invariance of a calling
> parameter, in order to avoid having to write the same function three
> times.

That can now be done with a template.



More information about the Digitalmars-d mailing list