home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / misc / 27381 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  740 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ysu.edu!psuvm!frmop11!turgut
  2. Organization: European Academic Research Network (EARN)
  3. Date: Friday, 14 Aug 1992 15:42:02 GMT
  4. From: Turgut Kalfaoglu <TURGUT@FRMOP11.BITNET>
  5. Message-ID: <92227.154202TURGUT@FRMOP11.BITNET>
  6. Newsgroups: comp.os.os2.misc
  7. Subject: RE: Stem Variables as Arguments
  8. References:  <9208131845.AA12317@ucbvax.Berkeley.EDU>
  9. Lines: 13
  10.  
  11. Like VM NETNEWS code, a good way to define your GLOBAL variables
  12. is to have the 'g.' stem for them, like:
  13.  
  14. g.userid = 'something'
  15. g.node = 'something'
  16.  
  17. then in all your procedures (that need something global) you can
  18. just say
  19.  
  20. procedure expose g.
  21.  
  22. very elegant!  Intrepret 'Procedure expose' vars  is very ugly!
  23. -turgut
  24.