home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!newsun!news
- From: Duane Murphy <damurphy@wc.novell.com>
- Subject: Variable Scope Constructs
- Message-ID: <1993Jan27.220607.25695@novell.com>
- X-Xxdate: Wed, 27 Jan 93 22:13:48 GMT
- Sender: news@novell.com (The Netnews Manager)
- Nntp-Posting-Host: 130.57.72.123
- Organization: Novell, Inc.
- X-Useragent: Nuntius v1.1.1d12
- Date: Wed, 27 Jan 1993 22:06:07 GMT
- Lines: 27
-
-
- Has the concept of scope and persistent scope been addressed before?
- Sometimes I think that it would be useful to have additional and
- persistent
- scope other than global and local (local is not persistent).
-
- The idea of a "static" C concept comes to mind. Variables created as
- static would exist in that scope and persist add infinitem. Another
- alternative is the Fortran Common area concept. This would be like
- having a named scope. This would allow procs that wanted to share
- variables to cooperate.
-
- I guess the main problem I am trying to solve is global variable name
- clutter and collision.
-
- Has this been hashed already? Is this an interesting idea? Has anyone
- done it? I am thinking about doing it, but don't want to rehash work
- already done.
-
- Opinions?
- ...Duane
-
- +------------------------+--------------------------------------------+
- | Duane Murphy | My opinions are mine, mine, and only mine; |
- | damurphy@wc.novell.com | Except when they are also yours. |
- | Macintosh Software QA | |
- +------------------------+--------------------------------------------+
-