🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3992

Re: stdargs: passing (va_list *) to worker routines

#3992
From: Thad Smith
Date: Thu, 14 Sep 1995 06:21
22 lines
1445 bytes
In article <436p8d$2a5@newshost.lanl.gov>,
tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) wrote:
>In article <ukmVwQ9ytxQR084yn@csn.net>, thads@csn.net (Thad Smith) writes: 
>|> In article <434pa4$c4c@news1.wing.net>, pgf@american.com (Paul G. Fox)
>wrote: 
><snip>
>|> This seems to be a violation of the stipulation that "the object ap
>|> may be passed as an argument to another function..." [ANSI 4.8], since
>|> arrays can't be passed by value.
>
>I never thought this interpretation was possible! But if it is, and this was
>not intended, the wording should be changed.
>
>What I feel is: Whoever said anything about passing by value? If an lvalue
>denoting an object ap stands as a parameter to a function, the object ap can
>be said as being passed as a parameter, even in those cases where the value
>of the expression `ap' is not the contents of the object ap.

On second thought, it is probably OK by the "as if" principle, since
we probably can't tell the difference.

Thad
Technical Details
Message-ID: <UM7VwQ9yt5vH084yn@csn.net>
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
References: <434pa4$c4c@news1.wing.net> <ukmVwQ9ytxQR084yn@csn.net> <436p8d$2a5@newshost.lanl.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail
From: thads@csn.net (Thad Smith)
Newsgroups: comp.std.c
Subject: Re: stdargs: passing (va_list *) to worker routines
Date: 14 Sep 1995 00:21:18 -0600
Organization: T3 Systems
Distribution: world
Message-ID: <UM7VwQ9yt5vH084yn@csn.net>
References: <434pa4$c4c@news1.wing.net> <ukmVwQ9ytxQR084yn@csn.net>
 <436p8d$2a5@newshost.lanl.gov>
Reply-To: ThadSmith@acm.org
NNTP-Posting-Host: 199.117.27.22