Re: segfault w/ block, but not file scope
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Sat, 07 Jan 2006 20:20:56 GMT
Richard Heathfield <invalid@xxxxxxxxxxxxxxx> writes:
> M.B said:
[...]
> I've never been to ur. I repeat that C does not have pass by reference. If
> you disagree, show me the part of the C Standard that supports your
> viewpoint.
>
>> C iimplements this by pointers.
>
> In C, pointers are passed by value.
I think M.B has a point, though he didn't state it particularly
coherently.
No, the C doesn't directly support pass by reference, but, like many
other things, it does support it indirectly.
C doesn't support linked lists or binary trees, but they can easily be
implemented in C.
We all know what the relevant features of the C language are and how
they can be used to implement what other languages might implement
more directly. The only argument here is about the meaning of the
statement "C has pass-by-value" or "C supports pass-by-value"; this
debate would perhaps be more appropriate in an English usage
newsgroup.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- Follow-Ups:
- Re: segfault w/ block, but not file scope
- From: Richard Heathfield
- Re: segfault w/ block, but not file scope
- From: Joseph Dionne
- Re: segfault w/ block, but not file scope
- References:
- segfault w/ block, but not file scope
- From: Dieter
- Re: segfault w/ block, but not file scope
- From: Dieter
- Re: segfault w/ block, but not file scope
- From: Jack Klein
- Re: segfault w/ block, but not file scope
- From: Dieter
- Re: segfault w/ block, but not file scope
- From: M.B
- Re: segfault w/ block, but not file scope
- From: Richard Heathfield
- Re: segfault w/ block, but not file scope
- From: M.B
- Re: segfault w/ block, but not file scope
- From: Richard Heathfield
- segfault w/ block, but not file scope
- Prev by Date: Re: about difftime()
- Next by Date: Re: Initial values of File scoped and Block level variables
- Previous by thread: Re: segfault w/ block, but not file scope
- Next by thread: Re: segfault w/ block, but not file scope
- Index(es):
Relevant Pages
|