Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Linux, the way to get rid of boot viruses -- MaDsen Wikholm, mwikholm@at8.abo.fi


devel / comp.lang.tcl / Re: Why don't variables work in switch patterns?

SubjectAuthor
o Re: Why don't variables work in switch patterns?Ya Hu

1
Re: Why don't variables work in switch patterns?

<586d1bcc-bfa7-44a7-859f-b1c3fcaed183n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:100e:: with SMTP id d14mr3819866qte.192.1621329405576;
Tue, 18 May 2021 02:16:45 -0700 (PDT)
X-Received: by 2002:a9d:2c69:: with SMTP id f96mr3393144otb.242.1621329405380;
Tue, 18 May 2021 02:16:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 18 May 2021 02:16:45 -0700 (PDT)
In-Reply-To: <kvm23m$nr6$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.143.243.17; posting-account=SKJpMwoAAAC-rOO8mAwJg3LDXYdZJvzF
NNTP-Posting-Host: 94.143.243.17
References: <0b65h.52$Ht1.23@newsfe07.lga> <c435dc62-0837-4a60-b58a-45e26feda8c5@googlegroups.com>
<kvm23m$nr6$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <586d1bcc-bfa7-44a7-859f-b1c3fcaed183n@googlegroups.com>
Subject: Re: Why don't variables work in switch patterns?
From: 41r1k16@gmail.com (Ya Hu)
Injection-Date: Tue, 18 May 2021 09:16:45 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Ya Hu - Tue, 18 May 2021 09:16 UTC

proc case args {
foreach "1 2" [lindex $args end] {
append b " $1" " \{ $2\}"
} uplevel 1 switch [lrange $args 0 end-1] $b
return
}


devel / comp.lang.tcl / Re: Why don't variables work in switch patterns?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor