How to reverse char[]?
Manfred Nowak
svv1999 at hotmail.com
Wed Feb 8 09:52:17 PST 2012
Jonathan M Davis wrote:
> thanks to how unicode works
This does not mean, that the data structure representing a sequence of
"letters" has to follow exactly the "working" you cited above. That
data structure must only enable it efficiently. If a requirement for
sequences of letters is, that a sequence `s' of letters indexed by some
natural number `n' gives the letter `s[n]' and that is not efficiently
possible, than unicode and its "workings" are as maldesigned as the
alphabet Gutenberg has to take to produce books:
take randomly an ancient book `b' and randomly a letter `c'. Then try
to verify that `b[ 314.159] == c'. Of course you are allowed to read
only one letter.
-manfred
More information about the Digitalmars-d-learn
mailing list