dscanner and ref parameters

mark mark at qtrac.eu
Sun Feb 23 12:28:41 UTC 2020


On Sunday, 23 February 2020 at 09:35:30 UTC, Jacob Carlborg wrote:
> On 2020-02-23 10:03, mark wrote:
>
>> Then this would not only help dscanner, but also make it clear 
>> to programmers that the argument could be modified.
>
> It's not necessary for dscanner. It should look at the 
> signature of `getKeyval` to see that it takes an argument by 
> `ref`.

Just realised that the arg is 'out' not 'ref'; don't know if that 
makes a difference to dscanner. Anyway, I've made a bug report: 
https://github.com/dlang-community/D-Scanner/issues/793


More information about the Digitalmars-d-learn mailing list