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

	<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>2006-06-18T05:23:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-06-18T05:23:35-04:00</updated>

		<published>2006-06-18T05:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64134#p64134</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64134#p64134"/>
		<title type="html"><![CDATA[local &lt;-&gt; global variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64134#p64134"><![CDATA[
use namespaces<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jun 18, 2006 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[joke]]></name></author>
		<updated>2006-06-18T04:20:28-04:00</updated>

		<published>2006-06-18T04:20:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64133#p64133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64133#p64133"/>
		<title type="html"><![CDATA[local &lt;-&gt; global variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64133#p64133"><![CDATA[
Hi guys,<br><br>is it possible to have a variable to be known in the whole script, but NOT in every script? I mean, can I have a variable between local and global?<br><br>For example: a part of test.tcl<br>---------------------------------------------------------------------------------<br>set x "bla"<br><br>proc test1 {...} {<br>     puthelp "PRIVMSG #test-chan :$x"<br>}<br><br>proc test2 {...} {<br>     puthelp "PRIVMSG #test-chan :$x"<br>}<br><br>---------------------------------------------------------------------------------<br><br>Is it possible to make the variable x known in both procedures (test1, test2) without making x global? I want to have x to be known in test.tcl but NOT in my other tcl scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6616">joke</a> — Sun Jun 18, 2006 4:20 am</p><hr />
]]></content>
	</entry>
	</feed>
