Lars,
One word of caution.
While CI expressions in 'comment' lines do get evaluated when first
encountered, 'comment' statements are NOT included in the 'while' objects
generated by the CI to facilitate their evaluation, and thus the values of
'newh' and 'newm', in this case, would not change if the statement was
placed in a while loop hoping to use the new values of the variables at
each iteration.
Regards
Paul Christidis
[log in to unmask] wrote on 02/23/2005 02:09:40 AM:
> Paul Christidis wrote:
>
> > :setvar a SETVAR(b, 30+hpminute+(60*hphour))+SETVAR(newh,(b/60)
> mod 24)+SETVAR(newm,(b mod 60))
>
> > While variable 'a' is superfluous, the reduction of the number of
> > statements makes the single statement execute about 20% faster.
>
>
> Funny enough, this seems to even work without the A variable...
>
> :# ![ SETVAR(b, 30+hpminute+(60*hphour))+SETVAR(newh,(b/60)mod 24)
> +SETVAR(newm,(b mod 60)) ]
>
> Using the ![...] expression inside the # comment is even faster :-o
>
>
> Lars.
>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|