View previous topic :: View next topic |
Author |
Message |
Figga Voice
Joined: 30 Aug 2005 Posts: 6
|
Posted: Thu Oct 20, 2005 6:23 am Post subject: Namespaces .. i think |
|
|
Hi , im trying to develop a script that takes it triggers from another script , i need it to catch events that appear on the partyline ,,
do i use "namespace eval" or not ?
if so , whats the syntax for this , i have checked man pages all over but i dont understand them very well
Thanks
-F |
|
Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat Oct 22, 2005 7:49 am Post subject: |
|
|
no need to worry about namespaces. their main purpose is to avoid name collions with var and proc names. by edititing one word, the whole script gets another prefix. at least I haven't seen another real purpose for using namespaces . _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Oct 22, 2005 9:12 pm Post subject: |
|
|
Quote: | WHAT IS A NAMESPACE?
A namespace is a collection of commands and variables. It encapsulates the commands and variables to ensure that they won't interfere with the commands and variables of other namespaces. Tcl has always had one such collection, which we refer to as the global namespace. The global namespace holds all global variables and commands. The namespace eval command lets you create new namespaces. |
Tcl Built-In Commands - namespace manual page _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
Back to top |
|
 |
|