POV-Ray : Newsgroups : povray.general : Problem with parameters : Re: Problem with parameters Server Time
31 Jul 2024 00:30:33 EDT (-0400)
  Re: Problem with parameters  
From: Nicolas Alvarez
Date: 27 Feb 2008 09:56:58
Message: <47c57a3a@news.povray.org>


>> Unfortunately in 3.6 passing values by parameter is buggy,
>> it's fixed in the 3.7 beta, but in general you probably shouldn't
>> rely on values being returned correctly via parameter.
>>
> Just for curiosity sake, do you mean in general programming, or only in 
> SDL (and why)?
> 
> At the end, i read that a parameter (in programming) is just a variable 
> stored in the stack (and recovered later).

That depends on the programming language. In C, you'd have to pass a 
pointer.

void change_param(int* foo) {
     *foo=42;
}
...
int bar = 1;
change_param(&bar);


Post a reply to this message

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