Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm9zaHVhIENyYW5tZXIg8J+Qpw==?= Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Sun, 27 Jul 2014 19:18:15 -0500 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <53cef75d$0$291$14726298@news.sunsite.dk> <7s6vs9p395bretqrtdvh9i6til83vfk52p@4ax.com> <53d04b5f$0$291$14726298@news.sunsite.dk> <53d19752$0$295$14726298@news.sunsite.dk> <7lcat9t8j6tuo1v2tm1od8rhvhcgf5i7g9@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 28 Jul 2014 00:18:38 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="8cedddb29338592f734c41b16a68fadc"; logging-data="24260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g53ZQs2/Bi8M/uhJ20IgN4ciRBO3Mcss=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <7lcat9t8j6tuo1v2tm1od8rhvhcgf5i7g9@4ax.com> Cancel-Lock: sha1:9kCv73ceBBy4l3L9MPXRyQUvQSs= Xref: csiph.com comp.lang.java.programmer:29372 On 7/27/2014 12:13 PM, Roedy Green wrote: > On Sat, 26 Jul 2014 20:11:24 +0000 (UTC), Martin Gregorie > wrote, quoted or indirectly quoted > someone who said : > >> Perl and PHP use . as the string concatenation operator. It seems as good >> as any to me: > > I wonder if . would conflict with its use in qualification. class Foo { String name; public static void bar(String name) { Foo baz = new Foo(); System.out.println(baz.name); } } Is that code stringifying baz and concatenating the result to the name parameter, or is it retrieving the name field of baz? How would you access the other variant? -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth