Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The sum of the Universe is zero.


devel / comp.lang.mumps / Variable not being found

SubjectAuthor
* Variable not being foundSidney Reilley
`* Re: Variable not being foundJens
 `* Re: Variable not being foundJens
  `- Re: Variable not being foundSidney Reilley

1
Variable not being found

<20211025165852.1eafe3c77e340d064c3b762d@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=209&group=comp.lang.mumps#209

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Variable not being found
Date: Mon, 25 Oct 2021 16:58:52 -0600
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <20211025165852.1eafe3c77e340d064c3b762d@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="e48fe146feda78d1c096478e319797f6";
logging-data="9289"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/48dTs999q3A/F9O2w40GL"
Cancel-Lock: sha1:bHIl9gG/Y8l6TpLvY2rUF+G+Azk=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Sidney Reilley - Mon, 25 Oct 2021 22:58 UTC

Noob here again ...

[code]
#!/usr/bin/mumps
PARMS
; Parameter passing example routine
SHOW(first,second,third)
write !,"First value: ",first
write !,"Second value: ",second
set third="Modified"
write !,"Third value: ",third
quit

set x=1,y="B"
do SHOW^PARMS(x,y,.z)
[/code]

─› ./PARMS.mps <99>

First value:

*** in or near line 5:
write !,"First value: ",first
*** E17 Variable not found

BUT, it's there in the formal parameters - is it not?
--
Duke

Re: Variable not being found

<251262f6-9e53-4536-9aa2-64380bd73210n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=210&group=comp.lang.mumps#210

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:5c8:: with SMTP id d8mr22978927qtb.63.1635235563135;
Tue, 26 Oct 2021 01:06:03 -0700 (PDT)
X-Received: by 2002:a05:620a:539:: with SMTP id h25mr18420742qkh.329.1635235562679;
Tue, 26 Oct 2021 01:06:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 26 Oct 2021 01:06:02 -0700 (PDT)
In-Reply-To: <20211025165852.1eafe3c77e340d064c3b762d@gmail.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e730:6000:f192:8f26:6b52:76bc;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e730:6000:f192:8f26:6b52:76bc
References: <20211025165852.1eafe3c77e340d064c3b762d@gmail.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <251262f6-9e53-4536-9aa2-64380bd73210n@googlegroups.com>
Subject: Re: Variable not being found
From: jewu34@web.de (Jens)
Injection-Date: Tue, 26 Oct 2021 08:06:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 34
 by: Jens - Tue, 26 Oct 2021 08:06 UTC

Duke schrieb am Dienstag, 26. Oktober 2021 um 00:58:54 UTC+2:
> Noob here again ...
>
> [code]
> #!/usr/bin/mumps
> PARMS
> ; Parameter passing example routine
> SHOW(first,second,third)
> write !,"First value: ",first
> write !,"Second value: ",second
> set third="Modified"
> write !,"Third value: ",third
> quit
>
> set x=1,y="B"
> do SHOW^PARMS(x,y,.z)
> [/code]
>
> ─› ./PARMS.mps <99>
>
> First value:
>
> *** in or near line 5:
> write !,"First value: ",first
> *** E17 Variable not found
>
> BUT, it's there in the formal parameters - is it not?
> --
> Duke

I think the problem is, that the routine gets in Line 5 without being called. I'd put the do SHOW^PARMS(x,y,.z) before the SHOW label followed by q QUIT.
Jens

Re: Variable not being found

<332c4146-99d7-4a7a-8e09-89f6717ee89an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=211&group=comp.lang.mumps#211

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:c83:: with SMTP id 125mr18103187qkm.453.1635235823534;
Tue, 26 Oct 2021 01:10:23 -0700 (PDT)
X-Received: by 2002:a05:620a:1035:: with SMTP id a21mr1079157qkk.354.1635235823386;
Tue, 26 Oct 2021 01:10:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 26 Oct 2021 01:10:23 -0700 (PDT)
In-Reply-To: <251262f6-9e53-4536-9aa2-64380bd73210n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e730:6000:f192:8f26:6b52:76bc;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e730:6000:f192:8f26:6b52:76bc
References: <20211025165852.1eafe3c77e340d064c3b762d@gmail.com> <251262f6-9e53-4536-9aa2-64380bd73210n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <332c4146-99d7-4a7a-8e09-89f6717ee89an@googlegroups.com>
Subject: Re: Variable not being found
From: jewu34@web.de (Jens)
Injection-Date: Tue, 26 Oct 2021 08:10:23 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Jens - Tue, 26 Oct 2021 08:10 UTC

BTW, when you are in the same routine you don't need "do SHOW^PARMS(x,y,.z)", a "do SHOW(x,y,.z)" works too.

Re: Variable not being found

<20211026104930.ad3b6a68ed73cfd20658b3aa@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=214&group=comp.lang.mumps#214

  copy link   Newsgroups: comp.lang.mumps
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sidney.reilley.ii@gmail.com (Sidney Reilley)
Newsgroups: comp.lang.mumps
Subject: Re: Variable not being found
Date: Tue, 26 Oct 2021 10:49:30 -0600
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <20211026104930.ad3b6a68ed73cfd20658b3aa@gmail.com>
References: <20211025165852.1eafe3c77e340d064c3b762d@gmail.com>
<251262f6-9e53-4536-9aa2-64380bd73210n@googlegroups.com>
<332c4146-99d7-4a7a-8e09-89f6717ee89an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e48fe146feda78d1c096478e319797f6";
logging-data="15478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9J+rXyriEtwUodlWtp2IY"
Cancel-Lock: sha1:YQSVLAq8X1JyJBl2V/dmW+79maI=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Sidney Reilley - Tue, 26 Oct 2021 16:49 UTC

On Tue, 26 Oct 2021 01:10:23 -0700 (PDT)
Jens <jewu34@web.de> wrote:

> BTW, when you are in the same routine you don't need "do
> SHOW^PARMS(x,y,.z)", a "do SHOW(x,y,.z)" works too.

Thank you Jens, for both your replies! I need more coffee before I
implement your advise. :-)
--
Duke

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor