Common scope for function's in{}, out(result){} and body{}

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 00:32:10 PDT 2014


Ilya Yaroshenko:

>     immutable length = r1.length; //Error, can't use function 
> parameters.

Time ago it was argued that if the use of function parameters is 
allowed there (to define constants), you have poor's man 
pre-state ("old") in D.

Bye,
bearophile


More information about the Digitalmars-d mailing list