Post by luserdroog
Are there any extant or possible implementations of C which
execution character set already? I vote for it to be a regular
identifier character like _.
I believe from some work I did recently, that systems using the Mach-O
and ELF binary file formats reserve use of the @ sign in assembler
identifiers (which such systems use as the intermediary format when
compiling C programs).
Futhermore the C extension known as "Objective C" uses the @ character
as an additional language operator, thus precluding its use in
identifiers in application code.
From a long time ago, I recall the situation for using the $ sign in
identifiers was somewhat similar, but on other systems.
Thus I don't think allowing either character ($ or @) in portable C
identifiers is a good idea.
Now all of that is about the source code character set. The execution
character set (i.e. what can appear in strings, string constants, I/O
library call arguments etc.) is a completely different matter, though I
don't know if there are still systems around that lack those ASCII
characters in their runtime character set.
Jakob Bohm, CIO, Partner, WiseMo A/S. https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded