[REBOL] Re: Tuples versus Deciamls
From: carl:cybercraft at: 24-Jan-2004 11:49
On 13-Jan-04, Gerard Cote wrote:
> You were right Ashley,
> REBOL needs at least 3 components.
> I never tried before but it seemed to be so natural ...
> in fact REBOL fooled me this time but I will remember the lesson
> Next time I will try before submitting my answer!
Actually, you were right to say you can force a 2 component tuple
Gerard, as while this doesn't work...
>> t: to-tuple 1.1
** Script Error: Invalid argument: 1.1
** Where: to-tuple
** Near: to tuple! :value
>> t: to-tuple "1.1"
and despite the third number displayed there, it is a two component
>> length? t
As you say - test first - and keep testing till you get the answer you
> ----- Original Message -----
> From: "Ashley Trüter" <[atruter--labyrinth--net--au]>
> To: <[rebol-list--rebol--com]>
> Sent: Monday, January 12, 2004 8:12 PM
> Subject: [REBOL] Re: Tuples versus Deciamls
>>> Is, for example, 1.1 a tuple or a decimal?
>> Decimal, a tuple must have at least three components. Perhaps
>> pair! is what you want? ;)