home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / basic / 1090 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!rock!concert!duke!news.duke.edu!acpub.duke.edu!tcamp
  2. From: tcamp@acpub.duke.edu (Ted A. Campbell)
  3. Newsgroups: alt.lang.basic
  4. Subject: PARallel ACTions in BASIC
  5. Message-ID: <8942@news.duke.edu>
  6. Date: 22 Jan 93 11:03:30 GMT
  7. Sender: news@news.duke.edu
  8. Lines: 29
  9. Nntp-Posting-Host: raphael.acpub.duke.edu
  10.  
  11. An ANSI Solution to My Multitasking BASIC Query
  12. -----------------------------------------------
  13.  
  14. Thanks for your responses to my query about Multitasking BASIC. I
  15. was very surprised to learn when my copy of the Full ANSI BASIC
  16. standard arrived that this possibility was more or less foreseen 
  17. in the ANSI specification.  Their solution is that BASIC code
  18. can be subdivided into code segments delimited as follows:
  19.  
  20. PARACT
  21.    ...
  22. END PARACT
  23.  
  24. PARACT
  25.    ...
  26. END PARACT
  27.  
  28. Each code segment so delimited is run as a "PARallel ACTion".  This
  29. will be implemented as an option in bwBASIC 2.xx, but it is a fairly
  30. costly one in terms of code size, basically increasing all code by
  31. about 33% and slowing down processing.  Several persons pointed out
  32. that this would probably not be worth it, especially in an interpreted
  33. language.  So it can be commented out at bwBASIC compilation time. 
  34.  
  35. Has anyone ever seen a BASIC that implements this PARACT feature?
  36.  
  37.  
  38. Ted A. Campbell
  39. email: tcamp@acpub.duke.edu
  40.