Deprecation in traits

Ali Çehreli acehreli at
Tue Sep 29 19:16:04 UTC 2020

On 9/29/20 10:08 AM, Frak wrote:
> Hi folks,
> I've this:
> /Users/frak/dlang/ldc-1.23.0/bin/../import/std/traits.d(3711): 
> 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.
> Suggestions?

I've just ported my code to 2.094 and had to clean up that issue. 
Luckily, in my case they were all in user code. I had to access my 
Nullable objects with .get:

   if (n) {
     //;    <-- from;   <-- to

So, look at all your Nullable objects maybe.


More information about the Digitalmars-d-learn mailing list