Null argument and function resolution

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 27 12:38:16 PDT 2015


On Wed, 27 May 2015 14:09:47 +0000, Adam D. Ruppe wrote:

> Two options:
> 
> 1) add an overload that takes typeof(null)
> 
> this(typeof(null)) { /* handles the null literal specially */ }

you keep breaking my "box of thinking". ;-) never thought about such 
declaration.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150527/be178b9f/attachment.sig>


More information about the Digitalmars-d-learn mailing list