Well, then, If I have the integer value 71 (hex 47) and whish to save it to a file as an eight-bit byte, how should I proceed with tuple! ?
~H Du skrev (21.32 10.10.2001): >Could you use tuple! datatype? > >>> colour: 12.34.56 >== 12.34.56 > >Andrew Martin >ICQ: 26227169 http://valley.150m.com/ >-><- > >----- Original Message ----- >From: "Hallvard Ystad" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, October 11, 2001 8:13 AM >Subject: [REBOL] code beauty... fiction ? > > >> When I do java programming, I have the types BYTE and SHORT. I haven't >found this in rebol, so I convert integers this way: >> >> short: load rejoin ["#{" pick to-hex some-integer 5 >> pick to-hex some-integer 6 >> pick to-hex some-integer 7 >> pick to-hex some-integer 8 >> "}"] >> >> byte: load rejoin ["#{" pick to-hex some-integer 7 >> pick to-hex some-integer 8 >> "}"] >> >> I don't find this a very sexy way to do it. Has anyone got any suggestions >to do it in a more intuitive way? >> >> ~H >> Praetera censeo Carthaginem esse delendam >> >> -- >> To unsubscribe from this list, please send an email to >> [EMAIL PROTECTED] with "unsubscribe" in the >> subject, without the quotes. >> >> > > >-- >To unsubscribe from this list, please send an email to >[EMAIL PROTECTED] with "unsubscribe" in the >subject, without the quotes. Praetera censeo Carthaginem esse delendam -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
