Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Stackoverflow question: Hidden Features of Tcl
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Bromley  
View profile  
 More options Jun 22 2009, 10:39 am
Newsgroups: comp.lang.tcl
From: Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
Date: Mon, 22 Jun 2009 15:39:07 +0100
Local: Mon, Jun 22 2009 10:39 am
Subject: Re: Stackoverflow question: Hidden Features of Tcl

On Mon, 22 Jun 2009 04:24:16 -0700 (PDT), Colin Macleod wrote:
>I'm sure you can come up with more answers to this:
>http://stackoverflow.com/questions/1024711/hidden-features-of-tcl

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]}

Tcl never ceases to amaze and delight.  Now I have a
desk calculator any time I want one, right there on the
tclsh command line.  [Yes, I know it's far from perfect...]
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.brom...@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.