- <PHB>
- AH we are having some problems with connections being dropped. Can you do some debugging?
- <AH>
- No problem, I will get to it straight away.
% <some oo command to create a method> string scramble {} {# scramble string} error string is not an object.Very surprised AH starts searching the Tcl wiki to find out what might be going on here, when he stumbles upon namespace ensembles. Thinking he found the way to do it AH happily goes to work again:
% <command to add subcommands to namespace ensemble> string scramble {} {# scramble string} error string is not a namespaceGetting a little bit annoyed now, AH decides to take the more involved way (everything is cmd args after all) and renames string to _string creates a new string command that checks if the first arg is scramble and otherwise calls _string with {something here}$args.After getting it to work after almost a day of hacking, AH is a bit annoyed but happy it is working.FF 6 monthsAfter upgrading the http package to a newer version for even better HTTP2.0 support, suddenly the phone rings, it's PHB.
- <PHB>
- AH what did you do?! All our webcrawler scripts are crashing.
posted to comp.lang.tcl 2006/10/26 by Mark Janssen [1]