Deprecation in traits
schveiguy at gmail.com
Tue Sep 29 18:25:03 UTC 2020
On 9/29/20 1:08 PM, Frak wrote:
> Hi folks,
> I've this:
> Deprecation: function `std.typecons.Nullable!long.Nullable.get_` is
> deprecated - Implicit conversion with `alias Nullable.get this` will be
> removed after 2.096. Please use `.get` explicitly.
> I'm trying to find out WHERE this is generated to fix it, dependency
> included, without success.
Because it's probably coming from a constraint, you probably can't
figure out the exact usage. What's more annoying is that likely it is a
spurious warning. A lot of traits "try something", and then alias to
false or true depending on what works. But it's not going to make a
difference in your code.
It's one of the most annoying things in the library. If you see this
warning coming from *your* code, then you should fix it. But it will
tell you the location if that was the case, not std.traits.
More information about the Digitalmars-d-learn