On Mon, 05 Jun 2000, you wrote:
> One problem I can see with the solution of:
>
> to-integer head reverse #{A1020000}
>
> is that this is assuming reverse-byte storage which is
> dependent on the platform (processor) where the script is
> being executed. The same script would not run correctly
> on all platforms (ie. it would break on 68000 instead of 'X86).
>
> I haven't tried this kind of thing as of yet but maybe
> someone else has another idea? Surely this has been encountered by now.
The proper way to do this is to use a standardized ("network byte order") format
in the file. This means use htonl()/htons() macros in C when writing
long/short integers to the file, then read the file in REBOL without any
explicit byte reversal. That way the REBOL script, the C source file and all
data files are all portable across platforms.
--
Holger Kruse
[EMAIL PROTECTED]