Weird. I'd thought all values in Java were set to a defined value. Thought
we got rid of the unassigned stuff with C. But I don't delve into the JVM
and language spec enough so could be wrong very easily.

Hen

On 27 Sep 2002, Steve Downey wrote:

> CharRange uses an unassigned static character, UNSET, as a flag value
> for testing if the range is a range or a single value.
>
> This looks a little odd to me. I had the distinct impression that
> accessing an unassigned value was an error. However, the comparison
> works. I'm just not sure it's working as intended, and won't fail to
> work an a different VM?
>
> relevant code:
>     /**
>      * Used internally to represent null in a char.
>      */
>     private static char UNSET;
>
> // ...
>
>     /**
>      * Is this CharRange over many characters
>      *
>      * @return boolean true is many characters
>      */
>     public boolean isRange() {
>         return this.close != UNSET;
>     }
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to