stktrc <firstname.lastname@example.org> writes:
> Are images containting reals supposed to be portable over platforms?
> It does not seem to be so at the moment, but I'm unsure if this is
> supposed to be so or not. Scheme48 0.53 and Scheme48 0.57 do not exhibit
> this behaviour as far as I can tell.
> Demonstration: Define a real number and dump a heap image on one
> platform (for example solaris-sparc). Resume that image on another
> platform (for example linux-i386) and evaluate the previously defined
> real number.
> ; define real
> (define n 1.0)
> ; dump image
> (dump-scsh "test.image")
> Using image on original platform, `n' is:
> Using the same image on the other platform `n' is:
> I suspect usage of the floatnums package could be related to this, but
> know too little of what is activated and when to be able to draw any
If S48 0.53 does not behave like this, the floatnums package is the
one to blame. You could even double-check this by opening the
FLOATNUMS package in S48 before starting your test.
Scsh does not change anything of S48's floating point implementation
but simply opens the FLOATNUMS package before dumping scsh.image.