In article <3dff7c63@news.povray.org>, Micha Riser <mri### [at] gmxnet>
wrote:
> > a += b; a += c;
> > or:
> > (a += b) += c;
> >
> > No temporaries.
>
> But you probably wouldn't write it like this when you had the + available.
If I am worried about that I use the "x=" operators. I have written a
vector class with these operators and I do use it in exactly this way.
> I still think the programmer is more forced to think about the best
> operation sequence when one has to apply them one by one and cannot just
> put lengths of forumlas there.
The problem is that he is forced to do so even when it doesn't matter.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|