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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ad19,59d1a7436aa0f405 X-Google-Attributes: gid10ad19,public X-Google-Thread: 103376,59d1a7436aa0f405 X-Google-Attributes: gid103376,public X-Google-Thread: 101deb,59d1a7436aa0f405 X-Google-Attributes: gid101deb,public X-Google-Thread: 1073c2,59d1a7436aa0f405 X-Google-Attributes: gid1073c2,public X-Google-Thread: 11440e,59d1a7436aa0f405 X-Google-Attributes: gid11440e,public X-Google-Thread: 107a89,59d1a7436aa0f405 X-Google-Attributes: gid107a89,public X-Google-Thread: 10a146,59d1a7436aa0f405 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-05-13 19:24:02 PST Path: archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!200-221-14-196.dsl-sp.uol.com.BR!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml,comp.lang.ruby Subject: Re: Length limit for variable names in your language? Date: Sun, 13 May 2001 23:19:27 -0300 Message-ID: <3AFF40AF.C7FB3D9C@uol.com.br> References: <3AFE60D8.6C3282B7@my-deja.com> <9dme2e$4od$1@news.ox.ac.uk> NNTP-Posting-Host: 200-221-14-196.dsl-sp.uol.com.br (200.221.14.196) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 989806973 19954575 200.221.14.196 (16 [39218]) X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: pt-BR,es,en Xref: archiver1.sj.google.com comp.lang.ada:7471 comp.lang.awk:2429 comp.lang.clarion:19175 comp.lang.java.programmer:67326 comp.lang.pl1:577 comp.lang.vrml:3232 comp.lang.ruby:9266 Date: 2001-05-13T23:19:27-03:00 List-Id: Edward Rosten wrote: > > > What this limit is for C++,Fortran,Lisp,Pascal etcetcetc ? > > According to K&R 2nd edition, C guarntees that at least the first 31 > characters of an internal name are significant. The standard guarntees 6 > monocase characters for external identifiers, minimum. > > -Ed The present standard (a.k.a. C99) changes this to: -- 63 significant initial characters in an internal identifier or a macro name (each universal character name or extended source character is considered a single character) -- 31 significant initial characters in an external identifier (each universal character name specifying a character short identifier of 0000FFFF or less is considered 6 characters, each universal character name specifying a character short identifier of 00010000 or more is considered 10 characters, and each extended source character is considered the same number of characters as the corresponding universal character name, if any) Since presently no C compiler is 100% compliant to the standard, YMMV. HTH Cesar