home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!zooid.guild.org!ross
- From: ross@zooid.guild.org
- Newsgroups: comp.lang.c
- Date: 18 Jul 92 03:11 MDT
- Subject: Re: Hungarian notation
- Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
- Message-ID: <1992Jul17.231117.15302@zooid.gui>
- References: <35240001@mechp05.uucp>
- Nf-ID: #R:mechp05.uucp:35240001:1992Jul17.231117.15302@zooid.gui:-1809532524:001:1166
- Nf-From: zooid.guild.org!ross Jul 18 03:11:00 1992
- Lines: 33
-
-
- ross@zooid.guild.org (Ross Ridge) writes:
- >I rarely spend much time scratching my head wondering what the type of
- >variable is, and the odd time that I do, I'm wondering if it's a "struct foo"
- >or a "struct bar" something that Hungarian won't tell me.
-
- stephen@eggneb.astro.ucla.edu (Stephen Schimpf) writes:
- >Why not? It is perfectly acceptable for you to come up with your own
- >prefixes. You are not limited to ones like "sz" and "b" or ones like
- >"hinst" or "hwnd" that Microsoft invented for Windows. If you make it
- >clear to other programmers reading your code (this includes you a few
- >months (weeks?) after you have written it) it will work.
-
- How am I going to make an arbitrary, and probably ambigous list of hundred
- or so prefixes clear to anyone?
-
- >typedef struct tagFOO // foo <-- mention prefix here
-
- If that comment is sufficient enough docomentation on the meaning of
- the new prefix then:
-
- struct tagFOO left;
-
- is sufficient enough documention of the type of the variable defined.
-
- Ross Ridge
-
- --
- Ross Ridge - The Great HTMU l/ //
- [OO][oo]
- ross@zooid.guild.org /()\/()/
- uunet.ca!zooid!ross db //
-
-