Questions tagged [tcl]

Tcl is a scripting programming language being popular for rapid prototyping and testing.

It was originally introduced by John Ousterhout and the abbreviation standed for Tool Command Language.

12 questions
0
votes
1 answer

Upgrading from Tcl 8.5 to 8.6 in NS2

I am currently writing a Tcl script for NS2 where things are added to a list via the lset x 0 end+1 $item command in Tcl. See below the below test script: set x { {} {} {} } set refID 1 proc addValue {value} { global x refID set value [expr…
Sam Dean
  • 103
0
votes
2 answers

Tcl: How to concatenate two binary value?

Want to concatenate two binary values to get a 16 bits value and save to a file. First binary is 6 bits constant 000111, second binary starts from 0 and increment by 1 for each loop. #!/usr/bin/tclsh set output_file "output.dat" set data_number "10"…
Fisher
  • 687