[REBOL] Re: long unsigned
I think you hit the bit limit of a signed integer in rebol? Rebol has no unsigned integer as far as I remember. Here's a few suggestions: 1) Send formatted as long signed, then get rebol to convert to decimal! on the server. 2) Send formatted as float or double. What is the strange value server receives? Anton. Hi I am *trying* to send a string formatted like this: %lu %lu %ld \n in C-style printf format over a tcp connection. However the long unsigneds give always the same (strange) value on the server (which is a binary for me). How can I get the unsigneds correctly over the wire? --Maarten -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.
[REBOL] Re: long unsigned
Hi, Maarten, Maarten Koopmans wrote: Hi I am *trying* to send a string formatted like this: %lu %lu %ld \n in C-style printf format over a tcp connection. However the long unsigneds give always the same (strange) value on the server (which is a binary for me). How can I get the unsigneds correctly over the wire? What is the strange value? Are you sure you're in range for REBOL integers (-2147483648 = value = 2147483647)? -jn- -- ; Joel Neely joeldotneelyatfedexdotcom REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip do function [s] [t] [ t: foreach [a b] s [repend t [b a]] t ] { | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.
[REBOL] Re: long unsigned
It turned out the protocol I am doing is implented in strings, so no problems anymore... --maarten Anton wrote: I think you hit the bit limit of a signed integer in rebol? Rebol has no unsigned integer as far as I remember. Here's a few suggestions: 1) Send formatted as long signed, then get rebol to convert to decimal! on the server. 2) Send formatted as float or double. What is the strange value server receives? Anton. Hi I am *trying* to send a string formatted like this: %lu %lu %ld \n in C-style printf format over a tcp connection. However the long unsigneds give always the same (strange) value on the server (which is a binary for me). How can I get the unsigneds correctly over the wire? --Maarten -- Maarten Koopmans Innovation manager tel: +31 30 2 305 324 Surfnet BV fax: +31 30 2 305 329 P.O.Box 19035 email: [EMAIL PROTECTED] NL-3501 DA Utrecht http://www.surfnet.nl The netherlands -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.