just an idea (!! operator)

David Piepgrass qwertie256 at gmail.com
Fri Jul 13 19:30:33 PDT 2012


On Friday, 13 July 2012 at 09:49:22 UTC, monarch_dodra wrote:
> I don't know much about C#, but in C#, isn't EVERYTHING a 
> reference type? Meaning it always makes sense to check if 
> "myobject is null".

No, C# has value types (enums, primitives, and user-defined
types) which are not nullable. The null coalescing operator (and
null?.dot, if it existed) is still useful for nullable types of
course; plus, any value type has a nullable counterpart (e.g.
int? = nullable int).


More information about the Digitalmars-d mailing list