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

	<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>2010-03-20T17:36:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-03-20T17:36:41-04:00</updated>

		<published>2010-03-20T17:36:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92543#p92543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92543#p92543"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92543#p92543"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...</div></blockquote>Don´t you think its bad that its only way to do it<br><br>You can´t make notes on same row before a code just after and onn a own row its insane. Considering there its a old language and shuld be away to do it. My opinion relly strange<br><br>/Slaktarn</div></blockquote>Nope, it's the way tcl works, and it works well enough for me...<br>And frankly, C is far older than tcl...<br><br>Honestly, I can't even see the problem with not being able to put comments in front of a line of code.. To me, that'd just make the whole piece of code harder to read, but then again, that's just my humble opinion..<br><br>I suppose you've got an issue with the way you comment code in bash-scripts too?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 20, 2010 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-03-20T15:21:05-04:00</updated>

		<published>2010-03-20T15:21:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92542#p92542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92542#p92542"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92542#p92542"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set b "huh" ; # commentset c "exactly" ; # another comment</code></pre></div>Putting comments before code is meant for compiled languages, tcl is interpreted. Therefore comments need to go "; #after" code, or on a line of their own. This simplifies the constructs the parser needs to recognize to see the item as a comment.</div></blockquote>Hehe so the only way to do it is the way you show... Hoever im not so good in TCL you seems to be relly good.<br><br>; is to tells that its the end of code/line right so its batter to have<br><div class="codebox"><p>Code: </p><pre><code>1: set a [lindex 1] ; # Comment2: set b [lindex 1] # Comment</code></pre></div>Then the exampel 1 is batter then exampel 2 i guss<br><br>/ Slaktarn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Sat Mar 20, 2010 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-03-20T14:13:20-04:00</updated>

		<published>2010-03-20T14:13:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92541#p92541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92541#p92541"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92541#p92541"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...</div></blockquote>Don´t you think its bad that its only way to do it<br><br>You can´t make notes on same row before a code just after and onn a own row its insane. Considering there its a old language and shuld be away to do it. My opinion relly strange<br><br>/Slaktarn</div></blockquote><div class="codebox"><p>Code: </p><pre><code>set b "huh" ; # commentset c "exactly" ; # another comment</code></pre></div>Putting comments before code is meant for compiled languages, tcl is interpreted. Therefore comments need to go "; #after" code, or on a line of their own. This simplifies the constructs the parser needs to recognize to see the item as a comment.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Mar 20, 2010 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-03-20T13:42:59-04:00</updated>

		<published>2010-03-20T13:42:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92540#p92540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92540#p92540"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92540#p92540"><![CDATA[
<blockquote class="uncited"><div>That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...</div></blockquote>Don´t you think its bad that its only way to do it<br><br>You can´t make notes on same row before a code just after and onn a own row its insane. Considering there its a old language and shuld be away to do it. My opinion relly strange<br><br>/Slaktarn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Sat Mar 20, 2010 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-03-20T09:56:00-04:00</updated>

		<published>2010-03-20T09:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92533#p92533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92533#p92533"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92533#p92533"><![CDATA[
That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 20, 2010 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2010-03-20T01:57:48-04:00</updated>

		<published>2010-03-20T01:57:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92528#p92528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92528#p92528"/>
		<title type="html"><![CDATA[Ucomment]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92528#p92528"><![CDATA[
Hay everyone then it was time again....<br><br>1: The only way i have found to ucomment in TCL is #<br><br>2: But i try to find a way to do it like C++ or PHP<br><br>I need to do<br><br><br><div class="codebox"><p>Code: </p><pre><code># My commentCode</code></pre></div>But i wuld like to do something like<br><div class="codebox"><p>Code: </p><pre><code>/* MyComment */ Code</code></pre></div>/Slaktarn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Sat Mar 20, 2010 1:57 am</p><hr />
]]></content>
	</entry>
	</feed>
