<?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/5006" />

	<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>2003-07-24T04:13:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-24T04:13:19-04:00</updated>

		<published>2003-07-24T04:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23880#p23880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23880#p23880"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23880#p23880"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set bigjointimer($chan) [utimer 4 [list array unset arrchnck $chan:$bjmask ]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jul 24, 2003 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-07-24T03:23:52-04:00</updated>

		<published>2003-07-24T03:23:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23877#p23877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23877#p23877"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23877#p23877"><![CDATA[
Hi,<br><br>  ppslim I tried:  <div class="codebox"><p>Code: </p><pre><code>set bigjointimer($chan) [utimer 4 [list unset arrchnck($chan:$bjmask) ]]</code></pre></div>  but the variable is still not getting unset. As for caesar's point, I am not sure how to use that array unset method.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Thu Jul 24, 2003 3:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-07-18T05:31:51-04:00</updated>

		<published>2003-07-18T05:31:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23632#p23632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23632#p23632"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23632#p23632"><![CDATA[
A variable exist only while its parent function is active.<br><br>Global variables (global is treated like a procedure in Tcl, though one your return, it exits), exist while global is running.<br><br>Anything in a procedure is created when needed, and destroyed on exit of the procedure.<br><br>Though, obviously, if you create a variable in a procedure, that you have declared as global, the global environment becomes the parent. This means it is only destroyed on exiting global.<br><br>The exception to the above, is specificly killing a variable using unset.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jul 18, 2003 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-18T04:11:32-04:00</updated>

		<published>2003-07-18T04:11:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23631#p23631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23631#p23631"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23631#p23631"><![CDATA[
Is it nessesery to unset all variables used in a tcl procedure like in other program languages or where in execution procedure is leaved variables is all unset automatically?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Fri Jul 18, 2003 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-07-17T16:12:44-04:00</updated>

		<published>2003-07-17T16:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23620#p23620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23620#p23620"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23620#p23620"><![CDATA[
that's an array, and unset it like this:<div class="codebox"><p>Code: </p><pre><code>array unset arrchnck $chan $bjmask</code></pre></div>or something like this anyway, I think..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jul 17, 2003 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-07-17T16:11:07-04:00</updated>

		<published>2003-07-17T16:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23619#p23619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23619#p23619"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23619#p23619"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set bigjointimer($chan) [utimer 4 { unset arrchnck($chan:$bjmask) }]</code></pre></div>Tcl doesn't evaluate code within curly braces unless you pass it to a command that evaluates it. It would need to do this on the spot to function with the variables.<br><br>Try using<br><div class="codebox"><p>Code: </p><pre><code>set bigjointimer($chan) [utimer 4 [list unset arrchnck($chan:$bjmask) ]]</code></pre></div>So that the variables are evaluated on the spot correctly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jul 17, 2003 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-07-17T15:31:55-04:00</updated>

		<published>2003-07-17T15:31:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23615#p23615</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23615#p23615"/>
		<title type="html"><![CDATA[variable not getting unset]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23615#p23615"><![CDATA[
Hi,<br><br>  What's wrong with this code, why isn't the variable <strong class="text-strong">arrchnck($chan:$bjmask)</strong> being unset  ?<br>  It's always incremented .... it never gets unset 4 seconds later. <br>  note: <strong class="text-strong">bigjointimer</strong> is declared as a global variable.<br><div class="codebox"><p>Code: </p><pre><code>  if {![info exists arrchnck($chan:$bjmask)]} {     set arrchnck($chan:$bjmask) 1    set bigjointimer($chan) [utimer 4 { unset arrchnck($chan:$bjmask) }]  } else {    set arrchnck($chan:$bjmask) [expr $arrchnck($chan:$bjmask) + 1]  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Thu Jul 17, 2003 3:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
