Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #67876

Re: An example: code to list exports of a Windows DLL.

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.lang.c++
Subject Re: An example: code to list exports of a Windows DLL.
Date 2019-08-22 16:07 +0200
Organization A noiseless patient Spider
Message-ID <qjm7ib$paf$1@dont-email.me> (permalink)
References (10 earlier) <ln1rxe3kr6.fsf@kst-u.example.com> <qjj6fo$gg6$1@dont-email.me> <lnsgpu1f2x.fsf@kst-u.example.com> <qjkrm7$155$1@dont-email.me> <hBw7F.29006$la1.15843@fx33.iad>

Show all headers | View raw


On 22/08/2019 15:17, Scott Lurndal wrote:
> "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> writes:
>> On 21.08.2019 21:41, Keith Thompson wrote:
>>> "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> writes:
> 
>>>> For example, I remember `$` being used in the system API in the HP3000.
>>>> That's long ago, 1980s, but presumably use of `$` in system API function
>>>> names was part of the reasons why compilers supported it. And continue
>>>> to support it.
>>>
>>> OpenVMS uses $ in identifiers (and C and C++ compilers for OpenVMS have
>>> to allow for that).  Which is why, in my opinion, the standard *should*
>>> allow compilers to accept $ in identifiers.
>>>
>>> [...]
>>
>> Yes, I should have written MPE/IV, the OS we used on the HP3000. Sorry.
> 
> Which HP3000 language allowed '$' in identifiers?   On most HP3000
> compilers the $ was used in column 1 to introduce compiler control
> commands, for example in SPL/3000:
> 
> $TITLE "SON OF OVERLORD (SOO)"
> $CONTROL USLINIT,NOWARN,MAP,CODE
> $CONTROL SEGMENT=SOO
> BEGIN ...
> 
> SPL did allow apostrophes in identifiers:
> 
>   INTEGER PRIORITY, XDS'SUB, MAXPCB', MODE;
> 
> The engineers that designed the HP3000 were mostly ex-burroughs
> engineers, which is where the use of $ as a compiler control
> originated.
> 
>>
>> It's possible that all this is tied to the attempt to remove `$` in 
>> ASCII, as I recall instigated by Russia or France, a political thing.
> 
> C'est what?
> 
>> I 
>> mean, tied by the baffling decision to not include `$` in the C++ basic 
>> execution character set.
> 
> Maybe because the '$' symbol was often substited with a national
> symbol (e.g. the british pound symbol); it wasn't a fixed glyph
> worldwide.
> 

It was the # symbol that was replaced by £ in the GB version of ISO-646,
and on British keyboards.  The $ sign remained.  (Also ~ was replaced by
an overbar ‾, but I've no idea why.)

The $ symbol was kept in most, but not all, ISO-646 character sets.  It
was more common to replace characters like # { } [ ] | and ~ , all of
which are still there in C (but have trigraphs).

On a related topic, what is the rationale behind the choice of
characters allowed in universal character identifiers?  There seems to
be a vague attempt to allow "letters" but not "symbols".  Surely
allowing symbols like ¤ £ and § would be ideal for the kind of thing Alf
has in his library - characters that would not conflict with anything
else, stand out clearly, and can by typed easily on many keyboard
layouts (even with Windows).

Perhaps € would be a good choice - it is in the list of allowed Unicode
identifier characters.


Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-02 03:36 +0200
  Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-02 11:22 +0200
  Re: An example: code to list exports of a Windows DLL. rick.c.hodgin@gmail.com - 2019-08-02 02:33 -0700
    Re: An example: code to list exports of a Windows DLL. "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-08-02 16:54 -0700
      Re: An example: code to list exports of a Windows DLL. "Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com> - 2019-08-02 19:09 -0700
  Now on Github; based ordinals in listing (Re: An example: code to list exports of a Windows DLL.) "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-02 20:20 +0200
  Re: An example: code to list exports of a Windows DLL. legalize+jeeves@mail.xmission.com (Richard) - 2019-08-19 19:44 +0000
    Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-20 02:12 +0200
      Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-19 18:31 -0700
        Re: An example: code to list exports of a Windows DLL. David Brown <david.brown@hesbynett.no> - 2019-08-20 08:42 +0200
          Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-20 02:18 -0700
            Re: An example: code to list exports of a Windows DLL. Ian Collins <ian-news@hotmail.com> - 2019-08-20 22:22 +1200
              Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-20 14:21 -0700
            Re: An example: code to list exports of a Windows DLL. David Brown <david.brown@hesbynett.no> - 2019-08-20 13:00 +0200
              Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-20 14:59 -0700
                Re: An example: code to list exports of a Windows DLL. David Brown <david.brown@hesbynett.no> - 2019-08-21 10:29 +0200
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-21 11:14 +0200
                Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-21 02:55 -0700
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-21 12:30 +0200
                Re: An example: code to list exports of a Windows DLL. David Brown <david.brown@hesbynett.no> - 2019-08-21 14:22 +0200
                Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-21 12:41 -0700
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-22 03:38 +0200
                Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-21 19:24 -0700
                Re: An example: code to list exports of a Windows DLL. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-08-21 23:21 -0400
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-22 06:01 +0200
                Re: An example: code to list exports of a Windows DLL. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-08-22 00:26 -0400
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-22 07:54 +0200
                Re: An example: code to list exports of a Windows DLL. James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-08-22 09:08 -0400
                Re: An example: code to list exports of a Windows DLL. "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-08-22 19:37 +0200
                Re: An example: code to list exports of a Windows DLL. scott@slp53.sl.home (Scott Lurndal) - 2019-08-22 13:17 +0000
                Re: An example: code to list exports of a Windows DLL. David Brown <david.brown@hesbynett.no> - 2019-08-22 16:07 +0200
                Re: An example: code to list exports of a Windows DLL. Keith Thompson <kst-u@mib.org> - 2019-08-21 02:42 -0700
  Re: An example: code to list exports of a Windows DLL. Frederick Gotham <cauldwell.thomas@gmail.com> - 2019-08-20 04:09 -0700
    Re: An example: code to list exports of a Windows DLL. "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2019-08-20 17:24 -0700

csiph-web