Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: arrays and variables Date: Sat, 06 Apr 2013 15:20:19 +0200 Lines: 55 Message-ID: References: <19un43xj77bua.vw45l4e2wshi.dlg@40tude.net> <1uednTu2Z5ByUcPMnZ2dnUVZ8i-dnZ2d@bt.com> <78a7719f-3519-48a5-b36d-d8b7ddcafe7c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net ATGAzvuTkLzHieO79K+NeApEh3SrEZIvlgpvljBwL21TBHMKk= Cancel-Lock: sha1:Xu1kKu32LQX6w3/OP5u2XD5oj10= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: X-Antivirus: avast! (VPS 130406-0, 06.04.2013), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.java.programmer:23347 On 06.04.2013 10:11, lipska the kat wrote: > On 05/04/13 21:33, Lew wrote: >> lipska the kat wrote: >>> Stefan Ram wrote: >>>> Arved Sandstrom writes: >>>>> Stefan Ram wrote: >>>>>> Arved Sandstrom writes: >>> >>> [snip] >>> >>>> What is C? We have pointers in Java, see the JLS. >>> >>> Do we? I never knew that >> >> It's in the JLS, 4.3.1. >> "An object is a class instance or an array. >> >> "The reference values (often just references) are pointers to these >> objects, >> and a special null reference, which refers to no object." > > This is a rhetorical usage of the word pointer and says nothing about > the underlying mechanism used to implement references. Why "rhetorical"? You seem to imply that "pointer" and "memory address" are synonymous. But this is not necessarily the case even though personally I tend to also use it that way. I think Lew enjoys it from time to time to prove someone wrong who claims there are no pointers in Java because it is often surprising for Java programmers to find that p-word in the JLS. :-) >> It only has pointers for reference types > > Weasel words, I don't believe that you actually believe that. Why and why? There is nothing weaselish about quoting the JLS. Do you have a definition of the Java language with higher authority that does not contain the word "pointer"? > A reference is an abstraction of a pointer, [...] I think most people in software engineering actually use the terms the way you have presented them here which is also reflected in the article about pointers on wikipedia. That does not preclude other usages in specific context so the heads up of Lew is actually in order to keep us alert and use terms consciously. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/