Season of Docs

Paolo Invernizzi paolo.invernizzi at gmail.com
Tue Mar 19 09:37:21 UTC 2019


On Tuesday, 19 March 2019 at 07:33:28 UTC, Walter Bright wrote:
> On 3/19/2019 12:13 AM, Paolo Invernizzi wrote:
>> Would it help, not to ignore it, but raise a. compilation 
>> error, in this case?
>
> Then generic code would have to be special cased (by the user) 
> for it.

Sorry, I don't understand...

I mean, raising a compiling error if scope is applied to values 
that do not contain any references, so that it would be ignored, 
because it applies to references:

`foo(scope int p)` => compiler error...

- P



More information about the Digitalmars-d mailing list