| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <title>Flexible</title> |
| <link rel="stylesheet" href="style.css"> |
| </head> |
| |
| <body> |
| <? prevnext "<h1>Flexible</h1>" ?> |
| |
| Tcl is an extremely flexible language. It has to be, to work as |
| an embedded language in the variety of environments in which it's |
| deployed. |
| <p></p> |
| <table align=center> |
| <tbody> |
| <tr> |
| <td> |
| <PRE> |
| <B><FONT COLOR="#A020F0">proc</FONT></B> <B><FONT COLOR="#0000FF">decr</FONT></B> {<FONT COLOR="#B8860B">varname</FONT>} { |
| <B><FONT COLOR="#A020F0">uplevel</FONT></B> [<B><FONT COLOR="#A020F0">list</FONT></B> <B><FONT COLOR="#A020F0">incr</FONT></B> $<FONT COLOR="#B8860B">varname</FONT> -1] |
| } |
| <B><FONT COLOR="#A020F0">set</FONT></B> a 5 |
| decr a |
| <B><FONT COLOR="#A020F0">puts</FONT></B> $<FONT COLOR="#B8860B">a</FONT></PRE> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| |
| </p> |
| |
| </body> |
| </html> |