f



difference between chan gets / gets

Hi !

What difference between command chan gets and gets, chan puts and
puts ?

Many thanks !
0
10/31/2011 2:55:30 PM
comp.lang.tcl 23428 articles. 2 followers. Post Follow

1 Replies
1366 Views

Similar Articles

[PageSpeed] 59

serge_darin@mail.ru <serge_darin@mail.ru> wrote:
> What difference between command chan gets and gets, chan puts and
> puts ?

They are supposed to be the same.
puts is here for compatibility (and for those too
lazy to write those extra 5 chars, like me), whereas
chan is an attempt to have related functionality 
together in a single command.

If you're old to tcl, you'll likely be used to 
top-level "puts", whereas if you're new to tcl,
you're more likely to memorize only "chan" and
then find "puts" as a subcommand of it.

kind of...
0
avl1 (2748)
10/31/2011 9:00:21 PM
Reply: