Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: kanji or romaji for Japanese? (was: parallel-port IDE)



>>>>> "Scott" == Scott Stone <sstone@example.com> writes:

    Scott> both counts of what?  Maybe we're misunderstanding each
    Scott> other here... but if you had 4-byte characters, then a
    Scott> string, normally declared in C as 'char *string' (an
    Scott> oversimplification of course), would become 'int *string',

This was exactly my point.
    Scott> at least on x86 machines (I believe that 'int' is not 4
    Scott> bytes on all architectures, right?)  The 'long double'
    Scott> thing was intended as a Humorous Exaggeration.

Count 1: wasteful.  Characters are an opaque data type; if they're 32
bits, they're ints.  Thus, not wasteful.  (OK, actually UCS-4 is 31
bits.  As Phil Collins didn't sing, so-so-so-su-mi-o.)

For practical purposes (ie, working with existing code), int is 32
bits.  Architectures with 64 bit ints do exist, of course (Alpha and I
believe UltraSparc come to mind; purging ports of the int = 32 bits
assumption is a regular complaint of Alpha programmers), and there it
would be wasteful.  Point taken.

Count 2: using doubles to represent characters.  Won't happen, chars
are integral types, and do not compare sensibly (among other things).
A Humorous Exaggeration should have borrowed a declaration from a
multi-precision int library ;-)

Aren't you glad you asked?

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences        Tel/fax: +1 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
---------------------------------------------------------------
Next Nomikai: 20 November, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 12 December, 12:30 Tokyo Station Yaesu central gate
---------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links