(no subject)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Mystery Guest


I am reading a file using DataInputStream and I have the need to read
some integers as unsigned.  The problem is DataInputStream does not
have a readUnsignedInteger.  So I thought of converting the integer
to long as follows:

unsign = logDataInputStream.readInt() & 0x00000000ffffffffL

However the NetREXX compiler comes back with an error message directed
at my hex long constant as follows:

+++ Error: Incorrect syntax for a number

I understand that in order to do bitwise operations I need to make the
class binary but I still get this error.  The NetRexx manual or the
redbook does not seem to give any example of long hex constants [at
least as far as I can see].  So my question is what is the proper
syntax for a long hexadecimal constant in NetRexx?

Thanks in advance.

[PS.  V2.0.2 of NetRexx.  JDK1.4.0_01]

./CK

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>