Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!panix!roy From: Roy Smith Newsgroups: comp.lang.python Subject: Re: What other languages use the same data model as Python? Date: Thu, 05 May 2011 10:31:33 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Lines: 21 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: localhost X-Trace: reader1.panix.com 1304605894 8298 127.0.0.1 (5 May 2011 14:31:34 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 5 May 2011 14:31:34 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4733 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); 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...