Null Object works still fine

David Nadlinger see at klickverbot.at
Sat Aug 11 15:37:31 PDT 2012


On Saturday, 11 August 2012 at 22:23:12 UTC, Namespace wrote:
> This code works fine but it shouldn't, or?
>
> http://dpaste.dzfl.pl/b9027fff

You don't actually dereference ›this‹ in print(), so the null 
value in the implicit this parameter doesn't matter.

David


More information about the Digitalmars-d-learn mailing list