Message from discussion
Stackoverflow question: Hidden Features of Tcl
Path: g2news2.google.com!postnews.google.com!f30g2000vbf.googlegroups.com!not-for-mail
From: colin.macl...@tesco.net
Newsgroups: comp.lang.tcl
Subject: Re: Stackoverflow question: Hidden Features of Tcl
Date: Mon, 22 Jun 2009 09:35:24 -0700 (PDT)
Organization: http://groups.google.com
Lines: 12
Message-ID: <c0ec791a-3c4c-4753-b61c-8c06eb14a651@f30g2000vbf.googlegroups.com>
References: <23c1e4c9-2064-415a-960f-8fead334295f@j19g2000vbp.googlegroups.com>
<jk5v35d49gjtd9bkrti3u9g6fvsm440m6t@4ax.com>
NNTP-Posting-Host: 199.172.169.32
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1245688525 3776 127.0.0.1 (22 Jun 2009 16:35:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 22 Jun 2009 16:35:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f30g2000vbf.googlegroups.com; posting-host=199.172.169.32;
posting-account=WE-5ngoAAACcuD-CApdNEWYV-eWtyr9c
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.0.3705; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
On 22 June, 15:39, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
>
> So I read the whinges about [expr] and thought for a while,
> and then this popped into my head unbidden:
>
> tclsh% proc unknown args {uplevel 1 [linsert $args 0 expr]}
>
That's neat - I posted it on SO.
Colin.