Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news.ecp.fr!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail NNTP-Posting-Date: Sun, 12 Jun 2011 11:39:03 -0500 Date: Sun, 12 Jun 2011 09:39:02 -0700 From: Peter Duniho User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Call by Result References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 44 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 50.46.118.188 X-Trace: sv3-aYnfzgEKTujvojZu/x22VPa90FEb2OojAkZR4LuDm+I8OMS9iHCS2Q0kxlhfGZooNgmOlBjIms8gw57!l747TKAiI3mOrBkxx0dCxiFLHITgaTtWM6ArXmJXk2p1ZjHGj/DrORCjxWH5pMVuFHzLVJIHuSU5!R2rj+CQbPn4GjY8ejCKV5P8R2Jwlvp/VF1AzQ8Ypizg= X-Complaints-To: abuse@iinet.com X-DMCA-Complaints-To: abuse@iinet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3703 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5245 On 6/12/11 4:07 AM, Andreas Leitgeb wrote: > Peter Duniho wrote: >> In Hungarian, a function would never ever be named "sMyFunction". It >> might be named something like "StrMyFunction" or "SzMyFunction" or >> "PstMyFunction", etc. depending on the actual return type. > > The only "difference" seems to be the multichar type prefix and that > the prefix starts with uppercase letter. Did I miss something? Yes. Besides the fact that the single letter "s" is not a part of the convention's pre-defined tags for string types, Hungarian requires function names to start with an upper-case letter (and indeed, for each word or type tag within a function name to be capitalized). > I guess, even the "Sz" is just the Hungarian(language) version of a > plain "S"(which in Hungarian language would be pronounced like "sh" > if not followed by a "z"). One should never confuse the actual Hungarian language with anything found in the Hungarian naming convention. The human language has absolutely nothing to do with the convention. As "markspace" says, "sz" simply means a null(zero)-terminated string. The "st" tag means a Pascal-style string. > I doubt, that the original HN would have essentially more fans than > the MS-variant. There is no one "MS-variant". The actual Hungarian convention was used within Microsoft as well, but primarily within their Applications Division (when the company was organized between "Applications" and "Systems"). It just happens that the "Systems" (non)variant is what more people have seen, because it wound up in the Windows programming API. As for which has more fans, I have no idea. But since the "Systems" variant is so awful and useless, I would guess it has very few fans. And that's probably the one you're describing as "the MS-variant". The people who continue to voluntarily use Hungarian (and there are few remaining) surely are using the original, which is actually useful and meaningful. So on that basis, I have to doubt your doubt. :) Pete