Deutsch   English   Français   Italiano  
<vdublc$2t41$1@tota-refugium.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: nemethi <csaba.nemethi@t-online.de>
Newsgroups: comp.lang.tcl
Subject: Re: tablelist and unknow
Date: Sun, 6 Oct 2024 17:51:08 +0200
Message-ID: <vdublc$2t41$1@tota-refugium.de>
References: <vdrsom$r620$1@dont-email.me> <vdrt72$r620$2@dont-email.me>
 <vds1gi$r620$3@dont-email.me> <vdtp30$2hfu$1@tota-refugium.de>
 <21517282179411001@llp>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 6 Oct 2024 15:51:08 -0000 (UTC)
Injection-Info: tota-refugium.de;
	logging-data="95361"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mJW3jstNpFkxwy37pgR+2ylOXhY=
In-Reply-To: <21517282179411001@llp>
Content-Language: en-US
X-User-ID: eJwFwQcBACAIBMBKMp4RR0D6R/AOYmTtajDFYpUmm86TC+rQBWMuV/SyV7iGo7Oe+EaP5fkZ3xES
Bytes: 1981
Lines: 26

Am 06.10.24 um 14:32 schrieb clt.to.davebr@dfgh.net:
>> From: nemethi <csaba.nemethi@t-online.de>
> 
>> 3. The above works, but it uses the ::tablelist::moveCol proc, which
>> belongs to the implementation of the tablelist widget, not to its
>> documented, public API.  It is much better to use something like
>>
>> proc moveCol {args} {
>>      lassign $args tbl sourceCol targetCol
>>      $tbl movecolumn $sourceCol $targetCol
>> }
>>
> 
> I'm curious why you suggest using lassign $args... instead of putting the variables in the proc arguments list? Something like:
> 
> proc moveCol {tbl sourceCol targetCol} {$tbl movecolumn $sourceCol $targetCol}
> 
> Do error messages make more sense that way, or is it more efficient?
> 
> daveb
> 

The only reason for using args was that the OP used this form with both 
procs unknown and moveCol.

-- 
Csaba Nemethi  https://www.nemethi.de  mailto:csaba.nemethi@t-online.de