Re: How to check variables for uniqueness ?




"Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:45dc303b$0$765$bed64819@xxxxxxxxxxxxxxxxxxxx
Arne Vajhøj wrote:

[me:]
We were considering what changes would have been necessary back at the
beginning of Java's history for this UTF-16 mess to have been avoided,
or avoidable. I agree that we are in fact stuck with what we've got.

Way back then there was no interoperability, since there was nothing to
interoperate /with/ ;-)

It is not backwards compatibility I am talking about.

I am talking about interoperability between JVM's from
different vendors.

If you have a SUN and IBM Java exchanging binary data, then
it is very beneficial that the number of bits in a char is
well defined - not at least X bits as we all know it from C/C++.

Ah, I had misunderstood you. Sorry.

But I don't think it would have been possible to allow for binary
compatibility
(in that sense) /and/ had the Java spec worded in such a way that it
didn't
make it impossible to fix up future problems.

At least, not without buildng extra (explicit) flexibility into each
binary
spec.

That is, Java wouldn't define a binary format for chars; chars would be
exchanged (as Strings are) via some encoding of chars into bytes.


.



Relevant Pages

  • Re: how to wait for socket communications
    ... chars or bytes out of it? ... how to communicate the chars to Java. ... to use socket communication between my C++ program and my Java program. ...
    (microsoft.public.win32.programmer.networks)
  • Re: how to wait for socket communications
    ... Well, in C++ I am converting the unsigned chars to chars, but I don't know ... how to communicate the chars to Java. ... to use socket communication between my C++ program and my Java program. ...
    (microsoft.public.win32.programmer.networks)
  • Re: how to wait for socket communications
    ... how to communicate the chars to Java. ... because it seems that C++ chars are the same as Java bytes. ... So if I can just make a file out of that, the communication from C++ ... to use socket communication between my C++ program and my Java program. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Is anything easier to do in java than in lisp?
    ... > Hi, this is my first post to cll, never mustered enough courage to ask ... > Java chars are now just like C chars, only they are fixed to 16 bit ... they are not unicode chars. ... Java is a moving target. ...
    (comp.lang.lisp)
  • Re: How to use Java to read a binary file?
    ... I have a binary file. ... numbers, or chars. ... I am trying to use Java to read it and print out to ... public class CopyBytes { ...
    (comp.lang.java.programmer)