DIP69 - Implement scope for escape proof references

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 6 05:50:35 PST 2014


Marc Schütz:

> I agree that `ref` isn't something that should ever be 
> inferred, because it affects the semantics of the function. 
> Either the function requires `ref` semantics, or not. It 
> doesn't depend on how it is called.

(Perhaps this was already said) I think Ada used to have 
something like "auto ref" and later it was removed from the 
language.

Bye,
bearophile


More information about the Digitalmars-d mailing list