POV-Ray : Newsgroups : povray.off-topic : 99 lines of C++ for an unbiased ray tracer : Re: 99 lines of C++ for an unbiased ray tracer Server Time
5 Sep 2024 01:24:04 EDT (-0400)
  Re: 99 lines of C++ for an unbiased ray tracer  
From: Darren New
Date: 14 Jan 2010 17:51:59
Message: <4b4fa00f$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Warp wrote:
>>>   Also the syntax of indexing an array and indexing memory using a pointer
>>> is identical, adding to the confusion.
> 
>> Plus, you can't pass an array to a function, at least in C.
> 
>   Not directly, but you can do it indirectly if you enclose the array inside
> a struct (in that case the array (inside the struct) is truly passed by
> value rather than by-pointer).

And in the original versions of C, you couldn't pass a struct by value 
either. :-)

But yah, that's a good point I hadn't considered.

-- 
Darren New, San Diego CA, USA (PST)
   Forget "focus follows mouse." When do
   I get "focus follows gaze"?


Post a reply to this message

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