[Issue 23491] Nonsensical deprecation message when using delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 18 14:19:14 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23491

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #3 from Dennis <dkorpel at live.nl> ---
(In reply to Mathias LANG from comment #2)
> Note that I am not saying that the message is *incorrect* (it most
> definitely is correct) or that it shouldn't mention `buffer` - Just that it
> can & should be improved, perhaps with an `errorSupplemental`
> (`deprecationSupplemental` here) so that people don't get stuck looking at
> the call that returns the reference, instead of how the returned reference
> is used.

I'm working on a fix for the `` bug and `__anonymous_param`, I'll leave the
mentioning of `unsignedToTempString` as a future enhancement since currently
the information where `buffer` got escaped from is discarded, so it requires a
lot of refactoring of `escapeByValue` and `escapeByRef`.

--


More information about the Digitalmars-d-bugs mailing list