Description:
The Tcl programming language and related tools.
|
|
|
OT: Accessing the results of gcc's parse
|
| |
Hello out there, I once read about a tool (maybe even OS?) which somehow extracted or otherwise obtained the result of gcc parsing a C file. This tool then used the information to - whatever. Getting hold of this parse information would interest me, too - might be easier than perfecting my own parser to handle the darker corners... more »
|
|
question about logger and logging to a file
|
| |
I am trying to get logger to log to a file and found the below on the wiki at: [link] my question is this the corret/prefered way to do this? A basic example of logging to a file: package require logger proc log_to_file {lvl txt} { set logfile "mylog.log" set msg "\[[clock format [clock seconds]]\] $txt"... more »
|
|
Tcl-URL! - weekly Tcl news and links (Nov 20)
|
| |
QOTW: "If all your 3-year-old has is a hammer, watch out for the furniture." - Donal K. Fellows, on a newly fashionable non-Tcl language, or perhaps on ADTs more generally [link] Thanks to Arjen Markus for his weekly summary of Wiki activity:... more »
|
|
Semaphores
|
| |
Hi all, I am in need of semaphores. I want to synchronize resource access between several processes where one process writes and several other reads that resource. Is there a semaphore extension already existing? (searched long without any success) Thanks, Milad
|
|
BLT : where to go ?
|
| |
Hi All ! Due to the incertitudes on BLT, I have chosen to use for a new app, only the "basis" of BLT : graph, barchart and vector and pure Tcl or others. RBC appearance in Teacup confirmed that it was a good way, and one day to use the Tcl Dev Kit to build a robust app. But... following the link "Regular CVS Checkouts"/"ActiveState... more »
|
|
Whats wrong with that code(II)?
|
| |
Hi TCLers, I've studied Tcl language syntax several times, but I don't see my fault: % set obrace 3 3 % if {$obrace<0} {return "missing '}'"} extra characters after close-brace Why doest this code throw an error? TCL-Rule [4]: If the first character of a word is double-quote (“"”) then the word is terminated by the next double-quote character.... more »
|
|
Active State TCL 8.5.7 error message
|
| |
Hi TCL'ers, I've fresh installed Activstate TCL 8.5.7 and made a teacup update afterwards. Now I get the warning on each program start: error reading package index file /local/home/slash_opt/ActiveTc l-8.5/lib/teapot/package/linux -glibc2.3-x86_64/lib/pkgIndex. tcl: couldn't read file "/local/home/slash_opt/ActiveT cl-8.5/lib/teapot/package/linu x-glibc2.3-x86_64/lib/activest ate_activetcl_demos8.4/pkgInde x.tcl":... more »
|
|
Config files
|
| |
Is there a way to determine the standard location for application data? I would like to store some of the configuration options in the user's application data directory so the user does not have to enter them each time they run the script. Hopefully, the solution will be platform independent.... more »
|
|
Advice on embedding tkcon...
|
| |
Hi all, I am trying to embed the latest tkcon (2.5): proc console {} { if {![info exists ::tkcon::PRIV(root)]} { global argv argc namespace eval ::tkcon {} set ::tkcon::OPT(usehistory) 0 ::tkcon::Init -color-bg white -font {arial 14}\ -exec {} -root .tkcon... more »
|
|
Expect: interact with a pipeline
|
| |
Hello, I'm struggling with the following chunk of code: ...set channel [open {|tee out.log} RDWR] fconfigure $channel -buffering none spawn -noecho -open $channel interact which I expect to work like: ...spawn -noecho tee out.log interact Instead, out.log remains empty whatever I type (including carriage... more »
|
|
|