HP3000-L Archives

February 2005, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Paul Christidis <[log in to unmask]>
Reply To:
Date:
Wed, 23 Feb 2005 15:53:42 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
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 *

ATOM RSS1 RSS2