Richard Heathfield wrote:
> CBFalconer said:
>> Richard Tobin wrote:
>>> Richard Harter <> wrote:
>>>> Keith Thompson <kst-> wrote:
>>>>
>>>>> If K&R had chosen to use, say, "$" rather than "sizeof" as the
>>>>> symbol for this operator, we wouldn't be having this discussion.
>>>
>>> It would remove one of my objections, anyway.
>>
>> And they would have been thoroughly criticized. '$' is not
>> available on many keyboards. Think UK, France, Germany, for
>> example. It is not a portable character.
>
> $ is in the ASCII character set (code point 36) and the EBCDIC
> character set (code point 91). It is present on French keyboards
> (between ^ and *), Hungarian keyboards (sharing a key with
> e-acute), Polish keyboards (sharing a key with that funny
> w-sounded L with the line through it) and UK, German, Croatian,
> Slovak, Czech, Italian, Spanish, Latin American, Portuguese, and
> Japanese keyboards (shift-4). It is rather more portable than,
> say, the two square bracket characters [], which caused me one or
> two (minor) portability problems when I was working on mainframes.
I believe you. However, I can definitely remember seeing a
definition where that character was called 'local currency symbol',
or similar. Maybe that preceded general tightening of the ASCII
spec. And you can't deny that many keyboards are missing it.
Especially typewriters (remember them?).
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
--
Posted via a free Usenet account from
http://www.teranews.com