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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII 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: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) Subject: Re: Hungarian notation Date: 1996/05/23 Message-ID: #1/1 X-Deja-AN: 156307098 sender: news@lts.sel.alcatel.de references: <4adem2$b5s@mercury.IntNet.net> <4n6off$6e2@mikasa.iol.it> organization: GABI Software, Sarl. 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 <31a3b322.442404233@sqarc> willer@carolian.com (Steve Willer) writes: |> >How about this: Notate the following declaration correctly: |> > FILE *Foo; |> > |> >... Hmm. Maybe it's "pst". Nope, FILE may not be a struct. Maybe it's |> >"pch". Nope, file may not be a char, even though FILE * is often really |> >a pointer to char. |> ???? You're kidding, right? "FILE" is the struct used by the stdio |> functions. How can any function get a descriptor number from an array of |> chars? No. FILE is whatever the implementation wants it to be. There is absolutly nothing wrong with an implementation declaring a FILE as an integral type (which it then uses as an index into an array of whatevers); it is probably even a good idea to do so, since it keeps the programmers honest (and means they don't even have to recompile if I change some of the internals of my actual descripter). -- James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France Conseils, �tudes et r�alisations en logiciel orient� objet -- -- A la recherche d'une activit� dans une region francophone