In Tcl, all variables (except 'arrays') are held as strings of text - and that includes lists. A list is a string which is treated as a collection of individual words, space separated, and you can then select individual words by their word number.
And this means that if you have a simple, space se ....
There are times when a Tcl command can fail because of the data being passed in to it ... and when it fails, it can do so with a spectacular crash! For example, the glob command which matches files to a pattern (Tcl's ls or dir if you like to think of it that way) can go 'belly up' if there are no ....
When you want to pass data INTO a proc in Tcl from a regular variable, you write the variable name with a $ in front of it in the code and the value is substituted. But this doesn't work if (a) you are passing an array (which cannot be expanded into a string or (b) you want to change the value in a ....
I'm writing this early - before six in the morning - and already I've been around Melksham town as it starts to awaken for another day, dropping off a Melksham Chamber of Commerce Update Letter through the letterboxes of all the businesses. When I checked all their details for the town map a couple ....
Tcl is a very different language to the others that I give courses on - it's a truly interpretive language who's structure is based on commands rather than operators and operands. Thank sounds a bit technical - so what does it really mean?
A Truly Interpretive language is interpreted each step alo ....
Python is interpreted every time you run the code ... or that's the simple first story you're told. But really it's not that simple ... and not that inefficient.
When you run a Python program, it is not interpreted line by line as you run it - it is interpreted all at once before it's run at all, ....
Luac is Lua's Compiler ... using "luac" you can turn your Lua program into a binary (executable) file. Covered on Installing Lua on our Lua Programming and Learning to program in Lua courses.
usage: luac [options] [filenames].
Available options are:
- process stdin
-l list
-o nam ....
For Americans living in the UK, there's a need to think ahead ... for Mothering Sunday in the UK is celebrated in March (so cards on sale from mid January!) and in the USA, Mother's Day is in early May. You'll get some very odd looks if you walk into a card shop just after Easter here in England and ....
I'm going to "hit the button" this week ... a small, but very important new website for Melksham Chamber of Commerce and Industry and under their own domain name too!
http://www.melkshamchamber.org.uk/
The Chamber is a member of the Wessex Association of Chambers of Commerce - covering more that a ....