On Tue, Jun 08, 2004 at 10:39:53AM -0400, jimrandomh wrote:
> Paul Nevai wrote:
>> I wonder how safe it is to assume that 'B' is going to be always right
>> after 'A' as far as the Palm OS universe goes.
>
> Character literals with no qualifiers are defined to be ASCII by the C
> standard.
Interesting. What C standard are you reading?
The one I'm reading (C99, section 5.2.1/3) merely requires that a certain
set of characters (Latin letters, digits, and a large pile of punctuation)
be present, and that the decimal digits '0' to '9' be contiguous.
The O.P. should think about what interesting character collation sequences
are coming along in the future. Hint: there's only one, and it has the
Latin letters in the same places as ASCII does.
In turn, I wonder how safe it is to assume that asking about the safety
of such assumptions as the O.P. is doing is *always* indicative of a
design mistake...
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/