Ants AI, language matters

Jakob Ovrum jakobovrum at gmail.com
Sun Dec 25 10:15:04 PST 2011


On Sunday, 25 December 2011 at 17:07:46 UTC, bearophile wrote:
> It's usually better to think of pre/post increments as 
> returning void, and avoid code like this (but there is _far_ 
> worse C/D code around):
>
>
>> lokeLars = path[index--];

I agree that one should *generally* avoid this kind of code, but 
this example here is a very common C/C++ idiom, it should be 
fairly recognizable to anyone.


More information about the Digitalmars-d mailing list