|
|
>> 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
|
|