POV-Ray : Newsgroups : povray.off-topic : Teach yourself C++ in 21 days : Re: Teach yourself C++ in 21 strange malfunctions Server Time
29 Jul 2024 10:31:50 EDT (-0400)
  Re: Teach yourself C++ in 21 strange malfunctions  
From: Invisible
Date: 17 Apr 2012 06:55:49
Message: <4f8d4c35@news.povray.org>
>> When I looked at my function, I found I'd written "it->second;" rather
>> than "return it->second;". Not only is this apparently legal, it doesn't
>> even generate a compile-time /warning/.
>
> It's when I read things like that that I'm glad I found C# :-)

It's when I see things like this that I'm glad I use Haskell, not some 
low-level performance-oriented language that doesn't mind giving you 
garbage results if it makes the code 0.02% faster...


Post a reply to this message

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