Re: fortran character set
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 00:39:05 GMT
John Harper wrote:
In article <NtNAi.57317$ax1.27600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
James Giles <jamesgiles@xxxxxxxxxxxxxxxx> wrote:
John Harper wrote:
...
The problem is all the non-dollar currency symbols. Many Americans
call the hash mark or octothorp a pound sign, [...]
Used in that way it usually refers to pounds avoirdupois. I've
never encountered anyone (Americans or otherwise) that thought
it was really a currency symbol.
I seem not to have explained myself clearly enough. When Americans use
the phrase "pound sign" they mean pounds avoirdupois, as James said.
But when British, New Zealanders and possibly others use the phrase
"pound sign" they mean pounds in some currency. Either James never
used the phrase in the company of any such person, or he didn't know
that there had been a failure of communication.
I always call the # symbol "sharp" for the very reason that you
mention. (But then I always call £ "pound sterling" or "British
pound".) I was responding tongue-in-cheek to your implication
that Americans (a word I rarely use for just US citizens) were being
deliberately arrogant. Your "Presumably that was done by people
who thought everyone's currency was dollars" surely seems to imply
such.
Actually $ (which I always call "dollar") is in the language because
some early implementations of Fortran allowed it in identifiers. It
has never had any standard meaning in the language. In other national
variants of some of the character sets Fortran has been implented
with it would have displayed diffferently than $ anyway. For the most
part it would be OK to remove it from the language standard since
it would still be usable under the provision:
Additional characters may be representable in the processor, but may
appear only in comments (3.3.1.1, 3.3.2.1), character constants (4.4.4),
input/output records (9.1.1), and character string edit descriptors
(10.2.1).
But the f2003 committee wanted explicitly list *all* the printable
ASCII characters as part of the implementation set. So there are
now lots of characters in the implementation character set that
have no meaning in the language's syntax (except as part of data),
like sharp(#), grave accent(`), circumflex(^), and question mark(?).
There are others.
Why ASCII instead of the base set of ISO 646 (called the International
Reference Version, IRV)? Well, ASCII *is* the base page of ISO
10646, as well as the ISO 8859 sets. The world seems to be converging
on character sets that have US ASCII as the base page. There's no
reason the Fortran standard shouldn't acquiesce to that.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: fortran character set
- From: Phillip Helbig---remove CLOTHES to reply
- Re: fortran character set
- References:
- fortran character set
- From: Wade Ward
- Re: fortran character set
- From: Richard Maine
- Re: fortran character set
- From: John Harper
- Re: fortran character set
- From: James Giles
- Re: fortran character set
- From: John Harper
- fortran character set
- Prev by Date: Re: fortran character set
- Next by Date: Re: Deletion of BITS Datatype from Fortran 2008
- Previous by thread: Re: fortran character set
- Next by thread: Re: fortran character set
- Index(es):
Relevant Pages
|
|