thomasoa / andrews-deal

Automatically exported from code.google.com/p/andrews-deal
Other
10 stars 6 forks source link

invalid command "clock" #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set start [clock seconds]  (see 1-satck.tcl)
2.
3.

What is the expected output? What do you see instead?
It should produce an integer, but the command is invalid.

What version of the product are you using? On what operating system?
3.19, OS windows 7.

Please provide any additional information below.
It worked under 3.08.

Original issue reported on code.google.com by helling....@gmail.com on 14 Jul 2010 at 9:41

GoogleCodeExporter commented 9 years ago
My guess for why it worked is that Deal 3.1.9 is linked against a different 
version of Tcl than Deal 3.0.8, and that in the older version, Tcl included the 
'clock' command by default.

In later versions, Tcl "autoloads" the clock command from the Tcl library, 
which is not installed with Deal, which uses only the default Tcl commands.

The 'clock' command is actually unnecessary in this example - it looks like I 
made an incomplete effort to show some timing data, but it actually doesn't do 
anything.  You can delete the "set start ..." line and the entire "flush_deal" 
procedure from the example and it should run.

I'll fix in the next release.

Original comment by thomasoa on 14 Jul 2010 at 1:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r405.

Original comment by thomasoa on 14 Jul 2010 at 1:33