LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2006, 05:14 AM   #1
vinaysg
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
tcl/tk:


Hello,
I have gone through some of the TCL scripts. But this seems to be new to me. What is snit.tcl? when is it used and why?
 
Old 02-13-2006, 07:14 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by vinaysg
I have gone through some of the TCL scripts.
Which ones? From where?
Quote:
Originally Posted by vinaysg
What is snit.tcl? when is it used and why?
Maybe post the code.
 
Old 02-16-2006, 03:16 AM   #3
vinaysg
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
snit.tcl is normal tcl library code. The head of the file shows something like this.
#-----------------------------------------------------------------------
# TITLE:
# snit.tcl
#
# AUTHOR:
# Will Duquette
#
# DESCRIPTION:
# Snit's Not Incr Tcl, a simple object system in Pure Tcl.
#
# Copyright (C) 2003-2005 by William H. Duquette
# This code is licensed as described in license.txt.
#
#-----------------------------------------------------------------------
 
Old 02-16-2006, 11:03 PM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
I've checked the versions of TCL that I have installed on my various boxes and I can't find it. So I've never used it.

Sorry, can't help you further with this.
 
Old 02-16-2006, 11:11 PM   #5
vinaysg
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I was speeking to my colegues, they say that script is going to give some object oriented concept.
Whenever we use some new variable, we use to declare as (variable HELLO::LOG ""). I didnt understand this. Similarly snit.tcl will give one more kind of data type where we can say snit::type HELLO::LOG ""). Problem is what is "::" stands for. I know this is space delimiter, which avoids name repitation. But I want to know whether it is going to tell package hierarchy.
 
Old 02-16-2006, 11:47 PM   #6
vinaysg
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
How to browse tcl code? I use vim editor to code c and C++. This is first time I am working on tcl.
 
Old 02-17-2006, 02:14 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by vinaysg
How to browse tcl code? I use vim editor to code c and C++. This is first time I am working on tcl.
It's just a text-file (as you probably already have figured out), so you can keep on using vim.
 
Old 02-17-2006, 03:18 AM   #8
vinaysg
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
But still it depends on proc present in many different other files. I use ctags to browse c and c++ object oriented programming codes. But how to do same in TCL.
 
Old 02-17-2006, 06:52 AM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
google on vim syntax highlight

This page has a TCL syntax highlighting. Try it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where are tcl.h and tk.h?? kartheekpn Linux - Software 1 05-21-2005 09:08 AM
Tcl/Tk 8.4.7 dakota rob Solaris / OpenSolaris 3 10-27-2004 02:51 PM
TCL/TK vs. Qt liguorir Linux - Software 1 02-12-2004 04:54 AM
Tcl/tk ccarrieta28 Linux - Software 0 09-10-2003 02:49 PM
About TCL? JIV Programming 2 05-02-2003 03:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration