Hi Hallvard,
look at >> HELP JOIN
ARGUMENTS:
value -- Base value (Type: any)
rest -- Value or block of values (Type: any)
whatever type? the first value is (the Base value),
the second argument (the rest) will adopt it's type?.
in your case *print join "Took" * is a string
so, *s* will allways be a string. it's not a bug.
----- Original Message -----
From: Gabriele Santilli <[EMAIL PROTECTED]>
To: Hallvard Ystad <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 3:32 AM
Subject: [REBOL] Re: I want time!, not string!
>
> Hi Hallvard,
>
> On Wednesday, February 18, 2004, 11:30:04 PM, you wrote:
>
> HY> I have a funny problem. I have this:
> HY> s: now/time/precise
> HY> [...]
> HY> print join "Took" (now/time - s)
>
> HY> But sometimes, 's turns out to be a string! How can that happen??
>
> HY> The script is too long for me to pass on the full
> HY> context. But has anyone seen this (is it a?) bug before?
>
> I don't know of any bugs like this in NOW. AFAIK NOW/TIME/PRECISE
> will *always* return a TIME! value. Maybe you forgot to make S
> local to some function and are overwriting it? You could try to
> rename it to START-TIME or something more difficult to reuse by
> accident.
>
> Regards,
> Gabriele.
> --
> Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer
> Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/
>
> --
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.