Null references

Simen Kjaeraas simen.kjaras at gmail.com
Thu Aug 23 13:44:45 PDT 2012


On Thu, 23 Aug 2012 18:27:41 +0200, Nick Treleaven <nospam at example.net>  
wrote:

> I'd be interested to see your Option code.

Here you go. After looking at your code, and with Modern C++ Design
fresh in mind, I see that match and hasValue might have worked better
as free functions.

I took the liberty of implementing the optional function calls
discussed earlier. If your eyes glaze over or you feel an urge to
kill, you are likely looking at that part of the code.

-- 
Simen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Option.d
Type: application/octet-stream
Size: 6520 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120823/f7e9beb5/attachment.obj>


More information about the Digitalmars-d mailing list