| |
| |
| |
|
Page: 1 2
Comments:
<0> unfortunately, most of it is being done by someone very inexperienced in tcl <0> i mean, he's typing stuff like this: <0> }else{ <0> and then wondering what's wrong <1> hehe :b <2> "extra after close-brace" is what's wrong :) <2> chat* <2> char* <1> zanpaktou }else{
<3> <0.0ms> invalid command name "}else{" <1> ;) <2> .tcl if {1==2} {}else{ return "smooke" } <4> BL4DE: #635 (177 clicks) Tcl error: extra characters after close-brace <1> well, i'm sure he meant that it was on it's own line.. ;) <1> ;if {[info exists bleh]} { puts test <1> ;}else{ <1> ;puts "eh" <1> ;} <1> ; <2> well, aint u normally putting it on its own line when there's more than 1 line in the if ? :) <1> if the if-statement isn't too long, ya <1> i hate messy code, there should be alot of space <2> wouldnt that be is ? :) <0> http://www.tek-tips.com/viewthread.cfm?qid=1431&page=1 <0> funny discussion in realizer there <0> " There is one command in CAR that no other language to my knowledge has, EXECUTE, which allows one to generate code dynamically. I have lost count how often I have used that command. " <0> lol <0> wow, that discussion started in '99 and last post was in may '05 <5> arr <5> disconnect again <5> arr <5> nick_ why does it keep comming up with channel is shared <5> when i try to detach it <5> or transfer it <5> or attach it in another thread <6> any1 here who has experience with the http package of tcl ?? <1> c^de: just ask your question.. :b <6> well i have a little problem <6> if i request a page <6> and i want to show the contents of what i 'downloaded' <6> i only get like the first 10 lines of that page or so <6> is there any way to make it wait till the page is totally downloaded before continiuing ? <1> foreach line [split $datavariable \n] { puts $line } <6> respect! :> <1> ;)
<6> why won't it show up immediately ? <1> it's outputing the line after the whole page is downloaded <1> s/line/lines <5> ARG <5> server with threads is completly undoable <5> because the channels will still block <5> and there is no way to send something through the chan and listen on it at the same time <2> why not just not block it :) <1> fconfigure -blocking 0 and socket -async? <6> yoe <6> if i have a long text for example <6> and i want to regexp some stuff <6> but i want all the results <6> (and not just one) <6> is there a simple way to do that? <2> -all <1> ;set test {<htrmhs>this</teslefk><terlk>and that</rdjgskj>} <4> yoe: #679 (127 clicks) Tcl: <htrmhs>this</teslefk><terlk>and that</rdjgskj> <6> regexp -all -nocase only returns 1 result :s <4> c^de: #680 (33251 clicks) Tcl: 0 <1> ;foreach {match text} [regexp -all -inline -- {<.+?>(.*?)<.+?>} $test] { puts $text } <4> yoe: #681 (stdout) this <4> yoe: #681 (stdout) and that <4> yoe: There's 4 lines, but I'm not gonna show you the rest of them! =P <6> :> <6> thanks again :) <6> what does inline do? <1> easier with regsub at this one tho ;) <1> regexp ?? <4> regexp -> http://Tcl.Tk/man/tcl8.5/TclCmd/regexp.htm <1> read <6> k thx <1> ;regsub -all -- {<.+?>} $test <4> yoe: #689 (264 clicks) Tcl error: wrong # args: should be "regsub ?switches? exp string subSpec ?varName?" <1> ;regsub -all -- {<.+?>} $test {} <4> yoe: #690 (14926 clicks) Tcl: thisand that <6> expr ?? <4> expr -> http://Tcl.Tk/man/tcl8.5/TclCmd/expr.htm <5> [19:16:57] [Gotisch] .tcl thread::send -async $a { after 10000; thread::send -async 16384 { putlog "test worked!" } } <5> [19:16:57] [(botty] Tcl: <5> [19:17:08] [(botty] [19:16] test worked!
Return to
#tcl or Go to some related
logs:
+Mulliken +clock
Pice Infinity G35
SQL transpose table t-sql convertible burt 'fuck redchairsoftware' #windowsxp TAMERNI pass 4realamateurs box2s #politics
|
|