Main Content

Examples - Gadfly, NI Number, and Tcl to C interface

Archive - Originally posted on "The Horse's Mouth" - 2005-02-10 18:07:33 - Graham Ellis

Although the languages that we train on are much more stable (and unchanging) than you might think, people are always coming up with new uses and asking for further examples; many of the examples out there aren't quite right, are too complex, or aren't relevant in the UK. So I find myself writing and uploading new and modified sample programs all the time.

Want a regular expression to recognise a NIN (National Insurance Number), or an example of how to embed a new C function into Tcl? Are you looking for a piece of code that uses the Gadfly database? All these are recent requests, and all three are now up on our website along with a whole lot more.

All of the above were uploaded onto our web site yesterday evening, and we can cover them in class too; the NIN number example and Gadfly are in our "additional Python facilities" module. We cover C functions into Tcl and Vice Versa in our "Using Tcl from C" module.