POV-Ray : Newsgroups : povray.off-topic : An explanation of what next_permutation does : Re: An explanation of what next_permutation does Server Time
4 Sep 2024 23:18:35 EDT (-0400)
  Re: An explanation of what next_permutation does  
From: scott
Date: 7 Dec 2009 04:43:18
Message: <4b1cce36$1@news.povray.org>
> I *already* know that * is pointer dereference and -- is decriment. But 
> now I have to sit here and wonder "is that pre-decriment or 
> post-decriment?

Like I have to sit and wonder why it's (suffix,prefix) and not 
(prefix,suffix) in your example?

> And in why is it 'not (x < y)" rather than 'x >= y'?"

Aren't they the same? (btw the only reason I can see that you would use the 
first one is if the types being used don't have the >= operator defined). 
IIRC quite a lot of functions and libraries only assume that one of those 
operators is implemented, so that's probably why you'll see stuff like that.

> And similar questions. (Why "for (;;)" rather than "while true"? Is there 
> some difference?)

Not that I'm aware of.


Post a reply to this message

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