Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder4.news.weretis.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Call by Result Date: Sat, 11 Jun 2011 19:36:22 +0000 (UTC) Organization: UK Free Software Network Lines: 27 Message-ID: References: NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1307820982 9277 84.45.235.129 (11 Jun 2011 19:36:22 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sat, 11 Jun 2011 19:36:22 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5220 On Sat, 11 Jun 2011 23:00:08 +0530, Abu Yahya wrote: > On 6/11/2011 8:37 PM, Andreas Leitgeb wrote> >> So, actually the method here would be named sGetString(), that's fine >> with Java's *case*-conventions (but perhaps not with others...) >> >> > What does the initial "s" signify here? I think its because GW is using a variant of the so-called Hungarian Notation which AFAIK is a Microsoft invention, initially applied to C and C++. The idea is to make the name of a function or method document the type of object it returns by prefixing the name with an alphabet soup of initials, so a function returning a string might be called sMyFunction(). The catch with it is that, if you need to change the type of the returned value, you need to change all references to it as well, e.g if the function should rather return a pointer to the string you have to rename it to psMyFunction() and then hunt through the source file(s) changing all references to it as well. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |