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

	<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-08-28T17:03:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-08-28T17:03:42-04:00</updated>

		<published>2003-08-28T17:03:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25853#p25853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25853#p25853"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25853#p25853"><![CDATA[
I am trying to look now, however, I thought that array key names are stored elsewhere.<br><br>This is the memory ocupied, and only array unset will free this at the same time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Aug 28, 2003 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-28T16:02:39-04:00</updated>

		<published>2003-08-28T16:02:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25850#p25850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25850#p25850"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25850#p25850"><![CDATA[
<blockquote class="uncited"><div>Very true.<br><br>However, you should then use your own compatability function.<br><br>A simple "unset" of an array key, will result in memory not being freed unless the whole array is freed later.</div></blockquote>If I understand you correctly, you are worried about the array existing even if it has no elements?<br><br>If this is true, the same can be held true for using <em class="text-italics">array unset array key</em> as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Aug 28, 2003 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-28T15:45:28-04:00</updated>

		<published>2003-08-28T15:45:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25847#p25847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25847#p25847"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25847#p25847"><![CDATA[
<blockquote class="uncited"><div>Actualy is <em class="text-italics">array unset array $key</em></div></blockquote>For this to work like 'unset' you'd have to escape the glob matching chars.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 28, 2003 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-28T15:41:30-04:00</updated>

		<published>2003-08-28T15:41:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25846#p25846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25846#p25846"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25846#p25846"><![CDATA[
<blockquote class="uncited"><div>A simple "unset" of an array key, will result in memory not being freed unless the whole array is freed later.</div></blockquote>This is false.<br><br>No matter what method you use to unset single elements from an array, memory will be freed, but the array itself will continue to exist and occupy the variable name in the interpreter.<br>As far as I know, 'array unset' with a pattern is the same as doing multiple calls to 'unset' (if the pattern matches more element names)<br><br>As usual, my explanations suck...hope you get the idea <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 28, 2003 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-08-28T14:05:58-04:00</updated>

		<published>2003-08-28T14:05:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25843#p25843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25843#p25843"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25843#p25843"><![CDATA[
Very true.<br><br>However, you should then use your own compatability function.<br><br>A simple "unset" of an array key, will result in memory not being freed unless the whole array is freed later.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Aug 28, 2003 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-28T13:44:40-04:00</updated>

		<published>2003-08-28T13:44:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25839#p25839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25839#p25839"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25839#p25839"><![CDATA[
<blockquote class="uncited"><div>Actualy is <em class="text-italics">array unset array $key</em></div></blockquote><em class="text-italics">unset array($key)</em> is valid, and is more compatible with lower TCL versions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Aug 28, 2003 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-28T13:25:49-04:00</updated>

		<published>2003-08-28T13:25:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25838#p25838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25838#p25838"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25838#p25838"><![CDATA[
Actualy is <em class="text-italics">array unset array $key</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 28, 2003 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-28T04:52:51-04:00</updated>

		<published>2003-08-28T04:52:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25830#p25830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25830#p25830"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25830#p25830"><![CDATA[
Something like this?<br><div class="codebox"><p>Code: </p><pre><code>foreach {key value} [array get array] {if {[string equal $chan $value]} {unset array($key)}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 28, 2003 4:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-28T04:44:09-04:00</updated>

		<published>2003-08-28T04:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25827#p25827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25827#p25827"/>
		<title type="html"><![CDATA[Question on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25827#p25827"><![CDATA[
Hello,<br><br>I am creating a small script that is compatiable with multi channels and I am using setudef commands to set variables so I can give each channel its own variable via .chanset. I am trying to create a proc that when executed, it will delete certain array names (not entire array) and my question is how can I make it so the script find a certain value in array and return with array name so I can delete the array name.<br><br>ie.<br><br>set rchan($nick) $chan<br><br>I need $nick, but I only know $chan in this proc so I want to be able to find it and come back with $nick then delete it from there. Can it be done?<br><br>Thanks.<p>Statistics: Posted by Guest — Thu Aug 28, 2003 4:44 am</p><hr />
]]></content>
	</entry>
	</feed>
