User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 6 09:17:45 PST 2012


On 11/6/2012 9:06 AM, deadalnix wrote:> Le 06/11/2012 16:15, Walter Bright a écrit :
 >> On 11/6/2012 5:14 AM, Adam D. Ruppe wrote:
 >>> Hmmm, it didn't work on the most important place for my use case,
 >>> function
 >>> parameters:
 >>
 >> It didn't occur to me to enable that.
 >>
 >
 > It should work everywhere or not work at all.

You can't have @pure attributes on function parameters, either. Parameters don't 
work like regular declarations, never have, and I don't know of a language where 
they do. They even have a different grammar.



More information about the Digitalmars-d-announce mailing list