HP3000-L Archives

May 1999, 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:
Frank Letts <[log in to unmask]>
Reply To:
Frank Letts <[log in to unmask]>
Date:
Tue, 25 May 1999 22:21:04 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
I see the error!

step 5 should be ....["xyzzy"]

Frank Letts (aka 'Fast Frank')
http://freeweb.pdq.net/fbt1
[log in to unmask]

ps - plugh

----------
> From: Glenn Cole <[log in to unmask]>
> To: [log in to unmask]
> Subject: MPEX anomoly
> Date: Tuesday, May 25, 1999 1:49 PM
>
> Tad Bochan warns about a problem with MPEX:
>
> > DEV:print mpyikes;num
> >        1) setvar mpe ""
> >        2) if bound(insidempex) and insidempex=1
> >        3)    setvar mpe "mpe "
> >        4) endif
> >        5) !mpe echo ![word("xxx yyy zzz",,-1)]
> >
> > DEV:xeq mpyikes
> > zzz
> >
> > DEV:main.pub.vesoft "mpyikes"
> > xxx yyy zzz
> >
> > If line 5 is changed to :
> >        5) !mpe echo ![word("xxx yyy zzz"," ",-1)]
> >
> > it works fine.
>
> What's even more curious about this is that if line 5 is changed to
>
>          5) !mpe calc word("xxx yyy zzz",,-1)
>
> it works fine as well!
>
>
> As a separate issue, I would like to point out that
>
>          2) if bound(insidempex) and insidempex=1
>
> works inside MPEX *only* if the variable is bound!  For 'insidempex'
> this is fine, but for generic variable X this is not.  This is because
> unlike MPE (and Qedit), MPEX does *not* perform short-circuit evaluation.
> For non-bound vars, the error appears as:
>
>          %if bound(x) and x=1
>          Processing BOUND(X) AND X=1
>                                  ^
>          Variable name encountered, but variable is not defined. (CIERR
9805)
>
> --Glenn

ATOM RSS1 RSS2