Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Lexical Variables In C Loops (As Compared To Perl Loops) Date: Thu, 26 Mar 2015 23:40:55 -0700 Organization: None to speak of Lines: 24 Message-ID: <87384rnds8.fsf@kst-u.example.com> References: <87384wvbyp.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c77ff4d35e33d1c939d3461ebde8dd0d"; logging-data="23889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3ShpNE4eKOjHSu4ThAzIF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ehqaUt+WwAkHBvVydjjihLtzTNk= sha1:ZoIH/q54uB1/YqsH4CORyzKtXgY= Xref: csiph.com comp.lang.c:59065 Robbie Hatley writes: > On 3/22/2015 5:08 PM, James Kuyper wrote: >> On 03/22/2015 07:39 PM, Keith Thompson wrote: >> > What exactly do you mean by the word "variable"? ... >> >> A named object.... > > I tend to agree. Perl also takes that tack. As for un-named > objects (which abound in Perl), Perl calls them "referents". > > So I wonder what unnamed (say, malloc'ed) objects in C > are called? "referents"? "unnamed objects"? "doohickeys"? They're called objects. In C, an "object" is by definition a "region of data storage in the execution environment, the contents of which can represent values". There's no particular distinction between named and unnamed objects; an object's behavior is determined by its type, storage class, and so forth. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"