Is there a simple way to check if value is null for every case?

rikki cattermole rikki at cattermole.co.nz
Mon Aug 27 13:02:28 UTC 2018


On 28/08/2018 12:54 AM, SG wrote:
> The same thing for struct in C#
> 
> Struct S{
>     public int? i;
> }
> 
> S.i == null; // This works nicely.

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/index

So Nullable in D and C# is basically the same except C#'s has language 
support.


More information about the Digitalmars-d-learn mailing list