home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / tcl / 2477 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!newsun!news
  3. From: Duane Murphy <damurphy@wc.novell.com>
  4. Subject: Variable Scope Constructs
  5. Message-ID: <1993Jan27.220607.25695@novell.com>
  6. X-Xxdate: Wed, 27 Jan 93 22:13:48 GMT
  7. Sender: news@novell.com (The Netnews Manager)
  8. Nntp-Posting-Host: 130.57.72.123
  9. Organization: Novell, Inc.
  10. X-Useragent: Nuntius v1.1.1d12
  11. Date: Wed, 27 Jan 1993 22:06:07 GMT
  12. Lines: 27
  13.  
  14.  
  15. Has the concept of scope and persistent scope been addressed before? 
  16. Sometimes I think that it would be useful to have additional and
  17. persistent 
  18. scope other than global and local (local is not persistent). 
  19.  
  20. The idea of a "static" C concept comes to mind.  Variables created as 
  21. static would exist in that scope and persist add infinitem.  Another 
  22. alternative is the Fortran Common area concept.  This would be like 
  23. having a named scope.  This would allow procs that wanted to share 
  24. variables to cooperate.
  25.  
  26. I guess the main problem I am trying to solve is global variable name 
  27. clutter and collision.
  28.  
  29. Has this been hashed already?  Is this an interesting idea?  Has anyone 
  30. done it?  I am thinking about doing it, but don't want to rehash work 
  31. already done.
  32.  
  33. Opinions?
  34. ...Duane
  35.  
  36.   +------------------------+--------------------------------------------+
  37.   | Duane Murphy           | My opinions are mine, mine, and only mine; |
  38.   | damurphy@wc.novell.com |      Except when they are also yours.      |
  39.   | Macintosh Software QA  |                                            |
  40.   +------------------------+--------------------------------------------+
  41.