POV-Ray : Newsgroups : povray.off-topic : Monads in C# : Re: Monads in C# Server Time
29 Jul 2024 22:31:14 EDT (-0400)
  Re: Monads in C#  
From: Darren New
Date: 2 Jul 2011 19:08:27
Message: <4e0fa4eb@news.povray.org>
On 7/2/2011 13:52, Warp wrote:
>    What does X.Value return if X.HasValue is false?

Oh, and for what it's worth, "X = null;" does the same as setting 
"X.HasValue=false" and "X == null" is the same as "!X.HasValue". Just 
syntactic sugar the compiler puts in during one of the very early passes. 
Not something easy to do with C++ just that way, I suspect?

-- 
Darren New, San Diego CA, USA (PST)
   "Coding without comments is like
    driving without turn signals."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.