POV-Ray : Newsgroups : povray.programming : OT - need help tracking a (few) bug(s) in my little raytracer (C++) : Re: OT - need help tracking a (few) bug(s) in my little raytracer(C++) Server Time
28 Jul 2024 18:18:20 EDT (-0400)
  Re: OT - need help tracking a (few) bug(s) in my little raytracer(C++)  
From: Thorsten Froehlich
Date: 8 Aug 2001 18:51:17
Message: <3b71c265@news.povray.org>
In article <3b71c0ef@news.povray.org> , "Scott Hill" <nos### [at] nospamthanks>
wrote:

>     I've seen this done in many places, but have never understood why -
> these operations are properties of the class and therefore, surely, the
> correct place for them to reside is within the class ?

It is strongly suggested by Stroustrup in his books.  He never really
explains why it is so beneficial.  Most of the STL follows it.  I can't
think of many (non-philosophical) reasons that would make a huge difference
(i.e. in speed), but in general such code is much easier to comprehend and
that is enough for me to use it...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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