home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6439 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: newsroom.utas.edu.au!bruny!ntring
  2. From: ntring@bruny.mpx.com.au (Nick Ring)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ARexx: Using systemwide global variables - PLEASE HELP!
  5. Date: 28 Mar 1996 02:23:27 GMT
  6. Organization: University of Tasmania, Australia.
  7. Distribution: inet
  8. Message-ID: <4jct6v$a99@franklin.its.utas.edu.au>
  9. References: <4jc7t7$7u2@due.unit.no>
  10. Reply-To: nring@mpx.com.au
  11. NNTP-Posting-Host: bruny.its.utas.edu.au
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. : I want to maintain a global variable from several different
  15. : ARexx scripts. 
  16.  
  17. How about using ARexx's "clipboard" (see the 'setclip' and 'getclip'
  18. functions).
  19.  
  20. : Only one script must be able to read and modify the variable
  21. : at the same time. 
  22. : How cound I do this?
  23.  
  24. You could delete the variable which sort of solves both conditions. After you
  25. have finished modifying it, write it back out.
  26.  
  27. : I am currently using global environment variables, but that's only
  28. : really an emergency solution since forbid() isn't unbreakable
  29.  
  30. Ouch! Using forbid() is nasty. It degrades the whole system performance.
  31.  
  32. : within the scripts which modifies the variable. Also, it's a very
  33. : slow solution since the environment variables are stored as files
  34. : in AmigaDOS.
  35.  
  36. It's only going to RAM, and RAM, the last time I checked, was slow unless you
  37. send out the result in single characters.
  38.  
  39. : Any ideas?
  40.  
  41. You have got my $0.02 worth. I hope it helps.
  42.  
  43. nick
  44.