Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"It's when they say 2 + 2 = 5 that I begin to argue." -- Eric Pepke


devel / comp.lang.tcl / Re: call "proc" with condition

SubjectAuthor
* call "proc" with conditionAlex AJF
+- call "proc" with conditionGerald Lester
`- call "proc" with conditionManfred Stelzhammer

1
call "proc" with condition

<f28f8eb5-1542-4914-97b5-4846bc054557n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9988&group=comp.lang.tcl#9988

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:4c8e:b0:3a5:26a5:51d4 with SMTP id ez14-20020a05622a4c8e00b003a526a551d4mr19481517qtb.92.1667504108903;
Thu, 03 Nov 2022 12:35:08 -0700 (PDT)
X-Received: by 2002:a05:620a:28cd:b0:6cf:93b3:a78 with SMTP id
l13-20020a05620a28cd00b006cf93b30a78mr23453819qkp.11.1667504108685; Thu, 03
Nov 2022 12:35:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 3 Nov 2022 12:35:08 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2804:7f4:c1a8:77cd:c92d:c97b:9d:686c;
posting-account=34CIAQkAAAAtE6CyMBqcsY8micfuTmmR
NNTP-Posting-Host: 2804:7f4:c1a8:77cd:c92d:c97b:9d:686c
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f28f8eb5-1542-4914-97b5-4846bc054557n@googlegroups.com>
Subject: call "proc" with condition
From: ajbo...@gmail.com (Alex AJF)
Injection-Date: Thu, 03 Nov 2022 19:35:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1251
 by: Alex AJF - Thu, 3 Nov 2022 19:35 UTC

Hi,
anyone knows if we can call or execute a procedure with a condition?
i have tried this exemple, but doesn't work :

global var
set var 1
if {$var == "1"} {
proc addRec { } {
........
........
}

thanks,

Alex.

Re: call "proc" with condition

<tk15f1$veg$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9989&group=comp.lang.tcl#9989

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!W8/fhIku2mFEvQF8+99Hqw.user.46.165.242.75.POSTED!not-for-mail
From: Gerald.L...@KnG-Consulting.net (Gerald Lester)
Newsgroups: comp.lang.tcl
Subject: Re: call "proc" with condition
Date: Thu, 3 Nov 2022 14:40:17 -0500
Organization: KnG Consulting, LLC
Message-ID: <tk15f1$veg$1@gioia.aioe.org>
References: <f28f8eb5-1542-4914-97b5-4846bc054557n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="32208"; posting-host="W8/fhIku2mFEvQF8+99Hqw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Gerald Lester - Thu, 3 Nov 2022 19:40 UTC

On 11/3/22 14:35, Alex AJF wrote:
> Hi,
> anyone knows if we can call or execute a procedure with a condition?
> i have tried this exemple, but doesn't work :
>
> global var
> set var 1
> if {$var == "1"} {
> proc addRec { } {
> .......
> .......
> }
>
> thanks,
>
> Alex.

Honestly, I have no idea what you are asking.

Can you write a small but complete program showing what is not working
and describe what you want to happen.

--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email: Gerald.Lester@kng-consulting.net |
+----------------------------------------------------------------------+

Re: call "proc" with condition

<tk18o0$1h8sa$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9990&group=comp.lang.tcl#9990

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: manf...@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: Re: call "proc" with condition
Date: Thu, 3 Nov 2022 21:36:16 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tk18o0$1h8sa$1@dont-email.me>
References: <f28f8eb5-1542-4914-97b5-4846bc054557n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 3 Nov 2022 20:36:16 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="092ba7d25f52fb1f52dce815db47bceb";
logging-data="1614730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LbNGnb3ZVsgwI5KzrRPdezO/Q6IOO5zQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:01uEvHXmgScUVzP2PN3vy1pSwD8=
In-Reply-To: <f28f8eb5-1542-4914-97b5-4846bc054557n@googlegroups.com>
Content-Language: en-US
 by: Manfred Stelzhammer - Thu, 3 Nov 2022 20:36 UTC

global var
set var 1

proc addRec { } {
........
........
}

if {$var == "1"} {
addRec
}

regards
Manfred

Am 03.11.22 um 20:35 schrieb Alex AJF:
> global var
> set var 1
> if {$var == "1"} {
> proc addRec { } {
> .......
> .......
> }

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor