From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Passing Time via RCI
Date: 1998/02/04
Date: 1998-02-04T00:00:00+00:00 [thread overview]
Message-ID: <6b9jsg$d34$1@peuplier.wanadoo.fr> (raw)
In-Reply-To: 34D70B78.6503@lmco.com
Marc A. Criley a écrit dans le message <34D70B78.6503@lmco.com>...
>Samuel Tardieu wrote:
>>
>> >>>>> "Marc" == Marc A Criley <marc.a.criley@lmco.com> writes:
>>
>> Marc> Do I have to define my own time type? And write my own time
>> Marc> utilities? Or do an Unchecked_Conversion from Time to some byte
>> Marc> array I define, pass it, then convert it back?
>>
>> That's a bad idea to do an unchecked conversion to an array of bytes,
>> since it won't work in heterogeneous environments (bytes won't get
>> swapped in the case of an array, while they should if they represent a
>> time). You should probably define your own time type.
>
>Yeah, Unchecked_Conversion is way down on my list of palatable
>solutions, though the network on which it'd be used is homogeneous.
>It just strikes me as almost an oversight that I have all these Time
>oriented utilities and I can't simply use them because there's no
>straightforward way to pass time around. Another option I've got
>is to Split the time, type convert the Year, Month, etc into my
>own types, pass these, convert them back to Calendar.Year, etc.,
>and use Time_Of to rebuild the time. And still...
>
Why don't you simply pass it as a string ? All you need is a simple package to convert times to/from strings. Everybody has such a package (if you don't have it, write it quickly (or I'll send you mine), since it is useful in many occasions).
prev parent reply other threads:[~1998-02-04 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-02 0:00 Passing Time via RCI Marc A. Criley
1998-02-02 0:00 ` Samuel Tardieu
1998-02-03 0:00 ` Marc A. Criley
1998-02-03 0:00 ` Martin M Dowie
1998-02-04 0:00 ` Jean-Pierre Rosen [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox