Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: What other languages use the same data model as Python? Date: Thu, 5 May 2011 16:56:01 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 32 Message-ID: References: <4dbd1dbf$0$29991$c3e8da3$5496439d@news.astraweb.com> <77f64071-b288-404c-8280-b2c61ba77f06@n10g2000yqf.googlegroups.com> <92fbt9FfooU1@mid.individual.net> NNTP-Posting-Host: dsl.comtrol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader1.panix.com 1304614561 20079 64.122.56.22 (5 May 2011 16:56:01 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 5 May 2011 16:56:01 +0000 (UTC) User-Agent: slrn/pre0.9.9-102 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4761 On 2011-05-05, Roy Smith wrote: > In article , > Grant Edwards wrote: > >> That's what I was trying to say, but probably not as clearly. The "&" >> operatore returnas a _value_ that the OP passes _by_value_ to a >> function. That function then uses the "*" operator to use that value >> to access some data. > > Then, of course, there's references in C++. I think it's fair to call > the following "call by reference" in the sense we're talking about it > here. > > void f(int& i) { > i = 5; > } > int i = 42; > f(i); If after the call to f(i) the caller sees that i == 5, then that's call by reference. But, we were talking about C. > Of course, C++ lets you go off the deep end with abominations like > references to pointers. Come to think of it, C++ let's you go off > the deep end in so many ways... :) -- Grant Edwards grant.b.edwards Yow! Is this sexual at intercourse yet?? Is it, gmail.com huh, is it??