POV-Ray : Newsgroups : povray.off-topic : Games programmers : Re: Games programmers Server Time
10 Oct 2024 17:21:03 EDT (-0400)
  Re: Games programmers  
From: andrel
Date: 12 Sep 2008 08:11:30
Message: <48CA5CB9.9030301@hotmail.com>
On 12-Sep-08 13:01, Gail wrote:
> 
> "Invisible" <voi### [at] devnull> wrote in message 
> news:48ca3efa$1@news.povray.org...
> 
>>
>>   while(*v++ = *s++);
>>
>> I mean, what THE HELL...?

A nice example of language design inspired by hardware (and vice versa). 
May result in very fast code.

>>
> 
> I doubt that's the recommended way of copying an array any longer

I don't think it is a problem as long as the string is known to be null 
terminated. Don't put it in a library though. These are bound to be used 
by people who have never heard of the concept of preconditions. Or 
yourself in a weak moment after midnight.


Post a reply to this message

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