:: Re: [DNG] Pointer error in the back…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Irrwahn
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Pointer error in the backend of Netman
[top-posting fixed]

On Fri, 11 Dec 2015 12:25:00 +0100, Aitor Czr wrote:
> On 12/11/2015 10:04 AM, Irrwahn <irrwahn@???> wrote:
>> Ceterum censeo: There is no pass by reference in C,
>> has never been, and will presumably never be. Heck,
>> the C standard doesn't mention the concept at all,
>> not even in a non-normative foot note!


[...]

> CASE 1 (C Language):
>
> # include <stdio.h>
>
> void func(int*);
>
> int main(void)
> {
> int i=1;
> func(&i);
> printf( "%d", i);
> return 0;
> }
>
> void func(int *x)
> {
> *x = 2;
> }


[...]

> CASE 1: The argument is not a reference, it's an address.


Indeed. Alternatively you could call it a pointer value (sic!).

[...]

> I have several books about C/C++ language (by G. Leblanc, Fco. Charte, Javier Ceballos, etc...)


[pedantic mode=full] There is no C/C++ language. Those
are two distinct languages, looking uncannily similar
in places. Unfortunately. [pedantic/]

> H. Schildt is the only one using this terminology in C.


Which should tell us /something/, shouldn't it? ;^)

Irrwahn