From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,af40e09e753872c X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,f292779560fb8442 X-Google-Attributes: gid109fba,public X-Google-Thread: f8c65,30e368bdb3310fe5 X-Google-Attributes: gidf8c65,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public From: seebs@solutions.solon.com (Peter Seebach) Subject: Re: Hungarian notation Date: 1996/05/23 Message-ID: <4o1p9a$h6j@solutions.solon.com>#1/1 X-Deja-AN: 156308642 references: <31999F43.41C67EA6@scn.de> <4nsgct$c3l@cville-srv.wam.umd.edu> <4nvn6s$c83@gaia.ns.utk.edu> <4o1go0$jsd@cville-srv.wam.umd.edu> organization: Usenet Fact Police (Undercover) reply-to: seebs@solon.com newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.edu,comp.lang.eiffel Date: 1996-05-23T00:00:00+00:00 List-Id: In article <4o1go0$jsd@cville-srv.wam.umd.edu>, Bob Rodgers wrote: >Hungarian, at least, keeps arrays and pointers clear. However, I >agree, and the cost of a good garbage collector is trivial. Yes, there's a good one free from PARC for us lowly C programmers. Uhm. How does Hungarian keep arrays and pointers clear? void foo(void) { int aryFoo[10]; bar(aryFoo); } void bar(int aryParam[10]) { return; } is clearly wrong, as the parameter of bar is a pointer, not an array; yet, if you correctly note it as int *piParam, or whatever, you will have what looks, in the notation, to be a conflict of types, although there isn't one. -s -- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach. Unix/C Wizard - send mail for help, or send money for consulting! Unsolicited email is not welcome, and will be billed for at consulting rates. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html