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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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,30e368bdb3310fe5 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: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public From: vancleef@ohstpy.mps.ohio-state.edu Subject: Re: Hungarian notation Date: 1996/01/08 Message-ID: <1996Jan8.235128.8688@ohstpy>#1/1 X-Deja-AN: 134548086 references: <30C40F77.53B5@swsbbs.com> <30EF0415.6FE1@tus.ssi1.com> <4crm6i$24mi@navajo.gate.net> organization: The Ohio State University, Department of Physics followup-to: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3 newsgroups: comp.lang.eiffel,comp.lang.ada,comp.edu,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3 Date: 1996-01-08T00:00:00+00:00 List-Id: In article <4crm6i$24mi@navajo.gate.net>, feathers@gate.net (Michael Feathers) writes: > Todd Knarr (tknarr@xmission.com) wrote: > : In <1996Jan7.045815.8676@ohstpy>, vancleef@ohstpy.mps.ohio-state.edu writes: > : > : >How often do you use NON-ZERO terminated strings??? HN is > : >useless garbage in C++, or for ANSI C compilers. > > Not so. I use HN in C++ all the time. It is excellent in the presence > of polymorphism. Huh? How? > > : That's the big downside to HN: it simply cannot be sensibly extended to > : deal with an arbitrarily large number of types, and it goes completely > : insane dealing with polymorphism. I doubt anyone could come up with a > : reasonable HN prefix to accomodate a variable that can be one of 9 > : different types at any given time. > > I've never seen a variable that can be any of 9 different types in C++. > All variables have a type. Period. A type can be a union or a base > class, but all variables have one and only one type in C++. If you don't > believe me, check the ARM. >