Re: Syntax, expressiveness and the beauty of Tcl



On Mon, 30 Oct 2006, Darren New wrote:

Christian Gollwitzer wrote:
I also dislike expr in Tcl, if one has to do lots of math. Especially
that in 99% cases one needs to use additional braces.

I personally find it most annoying when doing some sorts of parsing,
where I have something like

set x [string range $y [expr {$z-1}] [expr {$z+1}]]
instead of something like
set x [string range $y z-1 z+1]

I.e., personally I miss the ability to use the same sort of constant
offsets you can apply to "end" on the other indecies. But that's just a
personal peeve. :-)

Miss no more!

$ tclsh8.5
% set z 3
3
% string range "A string this is." $z-1 $z+4
string

--
-Kaitzschu
s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
.



Relevant Pages

  • Re: Custom Sorting a DataTable Using DataGrid
    ... Here is a little sample that sorts ... columns based on string length instead of the default sorting. ... protected override void Dispose(bool disposing) ... private void Form1_Load ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Sorting of Sorts
    ... Here's one of the quickest BASIC sorts I've seen. ... Sub HuthSortAs String) ... Dim compare As String, holdd As String ... Dim low As Long, hi As Long, md As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: Faxing from ASP.NET page using faxlibcom
    ... > I tried impersonating I tried weak accounts SYSTEM all sorts of things. ... > Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... > Dim strComputer As String ... > Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)
  • Re: Faxing from ASP.NET page using faxlibcom
    ... > I tried impersonating I tried weak accounts SYSTEM all sorts of things. ... > Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... > Dim strComputer As String ... > Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)
  • Re: Faxing from ASP.NET page using faxlibcom
    ... > I tried impersonating I tried weak accounts SYSTEM all sorts of things. ... > Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... > Dim strComputer As String ... > Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)