From: Cesar Rabak <csrabak@uol.com.br>
Subject: Re: Length limit for variable names in your language?
Date: Sun, 13 May 2001 23:19:27 -0300
Date: 2001-05-13T23:19:27-03:00 [thread overview]
Message-ID: <3AFF40AF.C7FB3D9C@uol.com.br> (raw)
In-Reply-To: 9dme2e$4od$1@news.ox.ac.uk
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
next prev parent reply other threads:[~2001-05-14 2:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-13 10:24 Length limit for variable names in your language? No Na Me
2001-05-13 14:57 ` Larry Kilgallen
2001-05-15 5:42 ` Mark Yudkin
2001-05-13 17:51 ` Edward Rosten
2001-05-14 2:19 ` Cesar Rabak [this message]
2001-05-14 9:01 ` Edward Rosten
2001-05-14 13:36 ` Larry Kilgallen
2001-05-15 0:16 ` Rev. Bob 'Bob' Crispen
2001-05-13 17:55 ` Tim Tyler
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox