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

	<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-11-02T21:35:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-11-02T21:35:46-04:00</updated>

		<published>2003-11-02T21:35:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29384#p29384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29384#p29384"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29384#p29384"><![CDATA[
yes but its nice to know that it works like that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Nov 02, 2003 9:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-11-02T14:03:36-04:00</updated>

		<published>2003-11-02T14:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29356#p29356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29356#p29356"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29356#p29356"><![CDATA[
Not to mention older TCL versions (-&gt; older eggdrop versions) don't support namespaces, thus you lose compatibility.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Nov 02, 2003 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarkerJr]]></name></author>
		<updated>2003-11-01T19:00:25-04:00</updated>

		<published>2003-11-01T19:00:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29306#p29306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29306#p29306"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29306#p29306"><![CDATA[
Because, if you're going to use it multiple times, it saves keystrokes and memory.  It probably also runs faster, not having to keep switching namespaces, but I'm not sure.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2933">BarkerJr</a> — Sat Nov 01, 2003 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-11-01T08:59:21-04:00</updated>

		<published>2003-11-01T08:59:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29292#p29292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29292#p29292"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29292#p29292"><![CDATA[
why use global var ? just do $::var and you're done<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Nov 01, 2003 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-01T08:53:17-04:00</updated>

		<published>2003-11-01T08:53:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29291#p29291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29291#p29291"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29291#p29291"><![CDATA[
global ch not global $ch<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Nov 01, 2003 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-01T08:11:58-04:00</updated>

		<published>2003-11-01T08:11:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29287#p29287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29287#p29287"/>
		<title type="html"><![CDATA[Global vars...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29287#p29287"><![CDATA[
Hi.<br>my q is.<br>Can i make global vars in a function so that i can call them as any other<br>global var in another function.<br><br>This is the thing, when i start upp my bot and it joins the chans i have set it to it should go through all the chans and give them a var that holds their resp, topic. Atm i have just set it to lable the vars as top1, top2, top3 a.s.o...   <br><br>Just setting them as globals aint the real prob though, cause i wanna be able to do this a bit easier , like this<br>foreach chan [channels] {<br>     set a "top"<br>     set ch [append a $nr]<br>     global $ch<br>     set nr [expr $nr + $nr2]<br>  }<br>so it goes through all the chans and "calls" a var for every chan.<br>just so i don´t have to edit my script file if i make it join more chans...<br>Hmm anyhow hope you get what i mean heh <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>//DariuZ<p>Statistics: Posted by Guest — Sat Nov 01, 2003 8:11 am</p><hr />
]]></content>
	</entry>
	</feed>
