Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!ncrlnk!ncrwat!swdev!neil
From: neil@swdev.Waterloo.NCR.COM (Neil A. Law)
Newsgroups: comp.software-eng
Subject: Re: Experiences with Hungarian Naming Conventions
Summary: Further definition of convention
Message-ID: <974@swdev.Waterloo.NCR.COM>
Date: 15 Aug 89 15:28:07 GMT
References: <965@swdev.Waterloo.NCR.COM>
Organization: NCR Canada Ltd, Waterloo, Ontario, Canada.
Lines: 31

In response to my original posting it became clear that while some people
may be aware or may use the convention they are not aquainted with the term
Hungarian Notation, so I though a clarification was in order.

The convention was adopted by Microsoft (for OS/2 and Windows) and has been
used in some object-oriented languages (e.g. Smalltalk/V).  Examples of
identifiers defined through this convention might be:

            pchindex : a pointer to a character
            hrgnpasteWindow : handle for a region
            pvblock : pointer to void
            DxFromWnd(pwnd) - function providing window width
            InitCa(pca) - initializes (sets) a character value
            OnError - label to jump to on error

My original exposure to this was from a Microsoft OS/2 course.  They provided
us with a copy of an article outlining the convention and its benefits.  I've
also seen a two or three page desciption of the convention in the Windows SDK
manuals.

If anyone has any articles on the subject I would appreciate if you could send
me a copy (mail or email).  I would especially be interested in obtaining a
copy of Charles Simonyi's Meta-Programming thesis.


Thanks in advance.
-- 
==========================================================================
  >>>> Neil Law, Systems Architecture <<<<             519-884-1710 x499
  E&M Waterloo, NCR Canada Ltd, 580 Weber St. N., Waterloo, Ont. N2J 4G5
  N.Law@Waterloo.NCR.COM                  uunet!ncrlnk!ncrwat!swdev!neil