<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/15560" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-03-22T23:20:54-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/15560</id>

		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2008-03-22T23:20:54-04:00</updated>

		<published>2008-03-22T23:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81974#p81974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81974#p81974"/>
		<title type="html"><![CDATA[Tip of the day  - section]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81974#p81974"><![CDATA[
Sir_Fz, thank you so much, now i got it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sat Mar 22, 2008 11:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-22T18:04:39-04:00</updated>

		<published>2008-03-22T18:04:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81965#p81965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81965#p81965"/>
		<title type="html"><![CDATA[Tip of the day  - section]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81965#p81965"><![CDATA[
The eventloop procedure allows you to execute tcl commands with immediate full error reporting. For example:<blockquote class="uncited"><div>// This is an invalid command executed before eventloop<br>% set bla [string len]<br>wrong # args: should be "string length string"<br><br>// This is an invalid command executed after eventloop<br>%eventloop<br>Type "exit" to exit the event loop<br>% set bla [string len]<br>wrong # args: should be "string length string"<br>    while executing<br>"string len"</div></blockquote>As for proc pp, proc pv, proc pn and proc indent:<blockquote class="uncited"><div>pp - print proc<br>pv - print variable<br>pn - print namespace (with procs, variables and proper indentation)<br>indent - apply indentation based on open/close braces</div></blockquote>You can test them, for example:<blockquote class="uncited"><div>% proc bla {a b c} {<br> set a [expr {$b+$c}]<br>}<br>% pp bla<br>proc bla {a b c} {<br> set a [expr {$b+$c}]<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Mar 22, 2008 6:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2008-03-22T16:20:13-04:00</updated>

		<published>2008-03-22T16:20:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81963#p81963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81963#p81963"/>
		<title type="html"><![CDATA[Tip of the day  - section]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81963#p81963"><![CDATA[
Hi,<br><br>I was reading Tip of the day  - section in the forum and i have few questions.<br>what's the purpose to have proc eventloop, proc pp, proc pv, proc pn, proc indent -&gt; <a href="http://forum.egghelp.org/viewtopic.php?t=9559&amp;postdays=0&amp;postorder=asc&amp;start=45" class="postlink">http://forum.egghelp.org/viewtopic.php? ... c&amp;start=45</a><br><br>and  also proc wordwrap. I mean how to use them?<br><br>I'll appreciate of someone will explain with few small examples please?<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sat Mar 22, 2008 4:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
