From: polishookm <pol...@ma...> - 2008-12-19 17:56:32
|
Cameron Laird wrote: > On Fri, Dec 19, 2008 at 09:20:03AM -0500, polishookm wrote: > . > . > . > >> Why would the one work - read - but not the other - gets? Also, are >> >> fileevent $s readable [list sock_read $s] >> >> and >> >> fileevent $s readable { sock_read $s } >> >> and >> >> fileevent $s readable "sock_read $s" >> >> interchangeable? They all seem to work, at least in this example, but >> > . > . > . > Yes and no. > > For today, they all work as you want, and that's enough. > Yes Sensei :) > How deeply do you want to understand Tcl? Tcl's syntax is *quite* > simple--childishly so, critics have said-- yes, i've read this - > and it's humanly possible > to understand all of it <URL: http://wiki.tcl.tk/10259 >; within > that simplicity, yes, > > I'll return to that page and read it again. Perhaps in the context of my question I'll gain exactly what I should from it - > [ { " > > are distinct grouping characters, and each has a unique role. So: > what does "interchangeable" mean to you, and how much do you want > to pursue it? > In some circumstances, I know of course that these things are not interchangeable. And there clearly are circumstances where it's easy to show how and why they are not interchangeable. In my case, I may not need to pursue this further today because my goal, at the moment,, is only to open a connection to a jabber server so that an extremely simple client can respond to incoming messages. At this point, the quality of the response isn't important, just that the response mechanism is at least working. But at that later point, which probably isn't all that far in the future, I'm sure that a better understanding of "interchangeable .... or not ...." will be very, very useful. Which is to say if you can point me to a few more good (and very simple) examples, I can probably go from there. David's example, in my opinion, is an excellent starting place - Thanks in advance, Mark > Your question is a common one. Maybe we should write up a standard > answer ... > Perhaps since I asked the question, I'm the one who should answer it :) -- Mark Polishook, D.M.A. Technology Coordinator Morehead Hall, Rm 132 Center for Academic Advising and Adult Learning Montclair State University Montclair, NJ 07043 http://www.montclair.edu/AcademicAdvising/html ************** phone: (973)-655-4237 email: pol...@ma... jabber: pol...@ch... |