| |
| |
| |
|
Page: 1 2
Comments:
<0> anc: #1250 (stdout) 2 <1> ;puts [expr int(rand()*3)] <0> anc: #1251 (stdout) 0 <1> ;puts [expr int(rand()*3)] <0> anc: #1252 (stdout) 1 <1> ;puts [expr int(rand()*3)] <0> anc: #1253 (stdout) 1 <1> weird it cant choose 3 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1255 (stdout) 1 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1256 (stdout) 3 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1257 (stdout) 0 <1> ;puts [expr int(rand()*3.5)]
<0> anc: #1258 (stdout) 3 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1259 (stdout) 0 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1260 (stdout) 0 <1> ;puts [expr int(rand()*3.5)] <0> anc: #1261 (stdout) 0 <2> while ? <3> while -> http://www.tcl.tk/man/tcl8.4/TclCmd/while.htm <0> while -> http://Tcl.Tk/man/tcl8.5/TclCmd/while.htm <2> th3dge? <4> hest <2> 'goody <2> did you ever get around to try lighthttpd? <4> nope <2> hmm <2> seems nice <2> but i need it to support tcfl <2> tcl <2> i see its already supporting ruby and python <2> and running several cgi-thingies <2> maybe it would be able to run cgi.tcl <4> ya <2> hrm <2> and also <2> i have a socket question <2> if i do <2> fileevent sockID reabable <proc that does a gets on the sockID>, shouldnt that trigger the specified procedure everytime data is received in the socket? <3> fileevent -> http://www.tcl.tk/man/tcl8.4/TclCmd/fileevent.htm <2> man, that Tcl-Manual Tcl ****s <4> hmm <4> ya <2> it seems bound to <command>* using pubm <2> but regarding my socket question <2> does it make sense? <2> am i right? <4> ya <4> I think your right <2> how come it doesnt do that, then? <4> dunno? <2> u **** <2> i thought u knew tcl <4> well I'm not psychic <5> hest: Show us your actual code.. You're prolly making some stupid mistake. =P <2> of course im not ;> <2> it's no actual code <2> it was simply type-and-go <2> btw <2> you're running tcl+apache+fbsql, fire? <5> BTW, you hafta use vwait to make it trigger events in tclsh. <5> no, I'm not. <2> oh, i do? <2> in what matter? <2> in what way <5> EH? <2> vwait <2> vwait ?
<3> vwait -> http://www.tcl.tk/man/tcl8.4/TclCmd/vwait.htm <0> vwait -> http://Tcl.Tk/man/tcl8.5/TclCmd/vwait.htm <2> like <5> RTFM! =P <2> never used that crappy command <2> been able to avoid it all along <2> oh <2> so just open the script by using vwait forever? <5> Well it's necessary in tclsh scripts if you've got after events, or fileevent's. <2> vwait forever <2> set sockID [socket ...] <2> fileevent $sockID readable crap_proc <2> like that? <5> vwait comes after. <2> does it matter? <5> Yes. <2> set sockID <2> fileevent <2> vwauit <2> like that? <5> vwait sits there and waits for stuff to happen in the "background". <2> hmm <5> There's an example on the man page even.. <2> im dyslectic <2> dyslexic <2> can't read that either <2> hmm <2> so that means <5> o_O <2> the script is executed/interpreted down UNTIL the vwait statement, and everything after the vwait is executed/interpreted after the vwait finishes? <5> right. <5> and vwait just allows it to process the after/fileevent events. <2> hrm <2> thats crap <2> vwait ****s <2> should be left out <5> Until you set the variable that vwait is waiting on, and then your script will continue. <2> ya <2> i think i understand <5> =D <2> but can't unedrstand why that should interfere with the after/fileevents command <2> s <2> thats just stupid <2> if you USE a fileevent command, it is in 99,99999999999999999% of the cases highly deliberate <5> vwait is only needed in tclsh I think.. wish and eggdrop will process the events automatically without using vwait. <2> but why is it done like that? <5> Don't ask me.. <4> :P <5> =) <2> well... do you agree that it doesnt make much sense? <4> no <2> it has to have been done deliberately <2> but i cant seem to find the reason <4> if you dont tell the script to wait how would it know it when to trigger your fileevent, it will exit like normal <4> unless you use a loop <2> hmm <2> BHMM <2> good point <6> u use vwait so the script doesnt just run through and quit <6> just read the chat fast, might've been said <2> between all the stupid things you say, you actually happen to say something clever at times, th3dge <4> :P <2> ;> <2> th3dge? <4> O_o
Return to
#tcl or Go to some related
logs:
l33t0 burrit0 shezza efnet autorun with robocopy dell green scoop #worldcup #debian #politics #beginner #politics #hardware
|
|