Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen <nospam@xxxxxxxxxx>
- Date: Tue, 31 Oct 2006 08:51:41 +0100
slebetman@xxxxxxxxx wrote:
Can't your not be done with "proc = {..." also? This would work also with
+, -, * and so on. Some kind of operator-"overloading".
Aliases are faster since there is no "call"ing involved.
Okay, I was not aware of that.
In fact I used
to do it with proc before I found out about aliases.
Looks like there can be done many funny things with that.
Besides, making Tcl do "strange" things can be fun.
Right, and sometimes I really love playing around with that.
Here's my own early attempt to please you:
I will have a closer look into that, looks cool to me. Does your example
imply that the variable must exist before it can be used that way? This
would be very C-like, more that I expected... ;-)
Stephan
.
- Follow-Ups:
- Re: Syntax, expressiveness and the beauty of Tcl
- From: slebetman@xxxxxxxxx
- Re: Syntax, expressiveness and the beauty of Tcl
- References:
- Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: slebetman@xxxxxxxxx
- Re: Syntax, expressiveness and the beauty of Tcl
- From: Stephan Kuhagen
- Re: Syntax, expressiveness and the beauty of Tcl
- From: slebetman@xxxxxxxxx
- Syntax, expressiveness and the beauty of Tcl
- Prev by Date: Re: Syntax, expressiveness and the beauty of Tcl
- Next by Date: Indexing ... (was: Thoughts about the controversial {expand} feature)
- Previous by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Next by thread: Re: Syntax, expressiveness and the beauty of Tcl
- Index(es):
Relevant Pages
|