At 2:30 AM -0400 5/5/02, Melvin Smith wrote: >I have a patch almost complete that makes Parrot handle bytecode >files across platforms (does endian and wordsize transform), but there is >one glaring non-portability, and that is that we are storing floating point >constants in native format. > >We need to discuss how we want to portably store these (I propose >as a string) so I can finish up this patch.
Don't use a string. Add the float type as a field in the header, and store it as native. Pretty much everything uses, or can handle, IEEE floats. I don't see any compelling reason to toss away the efficiency of native storage for something like this. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk