Re: Are _T() and TEXT() macros equivalent?



To say that it is FUNDAMENTAL to the
language that sizeof(char) == 1?

When something is part of the standard, is used (as an implicit assumption)
by every single application developed in that language for the last 30 years,
and every single such application will break if this changes, then yes,
it is fundamental.



Well yes. If I know a file is not saved in Unicode, of course we need
special routines to read it and convert it, but what has that got to do
with whether a native "char" is 1 byte or 2 bytes?

It has. You will need another data type for "characters that are not Unicode"
to read such a file.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: Is C99 the final C? (some suggestions)
    ... > that someone will try compile their stuff on an old compiler. ... > because the ANSI standard obsoleted them, and everyone picked up the ANSI ... fixed by using another language. ... >>are multiplying two expressions of the widest type supported by your ...
    (comp.lang.c)
  • Re: Two Questions about "strlen", "strcat" and "strcpy"
    ... >> No. zero terminated strings is the whole problem in the first place. ... > OR length prefixed strings the language would retain compatibility ... is not easily duplicated with the old standard then it will foster interest. ... The C standards committee is dead. ...
    (comp.lang.c)
  • Re: Forth Frustrations
    ... How would they even know what they are without being language lawyers? ... standard systems and a large number of nonstandard ones. ... interpreter, ... They set up four states -- HOST INTERPRETER COMPILER ...
    (comp.lang.forth)
  • Re: Is C99 the final C? (some suggestions)
    ... >> because the ANSI standard obsoleted them, and everyone picked up the ANSI ... > fixed by using another language. ... programmers managing the meaning of the symbols for more generic operators. ... According to a paper by Intel, widening multiply accounts for something like ...
    (comp.lang.c)
  • Re: Case sensitivity
    ... few years managers find fault with the current front-running language ... Astronomers don't give a damn about software fashion. ... the standard packages are error-free, but at least you're getting the ... Not Windows 3.1 sitting on DOS. ...
    (comp.lang.forth)