home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / forth / mac / 38 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.1 KB  |  40 lines

  1. Newsgroups: comp.lang.forth.mac
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!schalk
  3. From: schalk@symcom.math.uiuc.edu (Ken Schalk)
  4. Subject: Stand-alone code segments in Forth
  5. Message-ID: <BzH7AK.5s7@news.cso.uiuc.edu>
  6. Summary: Is it possible?
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Fri, 18 Dec 1992 22:18:17 GMT
  10. Keywords: Pocket Forth WDEF XCMD blah blah blah
  11. Lines: 27
  12.  
  13.     I'm new to Forth and enjoying it immensely, but I have a question
  14. about stand-alone code segments, such as WDEFs and XCMDs.  Let me just
  15. say that I experienced in other languages (Pascal, C, C++, ...) and
  16. the Mac Toolbox, and have written both WDEFs and XCMDs in the past.
  17.     What I'm wondering is, is it possible to build such things with
  18. any of the Mac Forth incarnations?  (Personally, I am toying with
  19. Pocket Forth currently, as it is free.)  If so, how does the
  20. implementation go about building the code resource?  Does it just take
  21. a copy of the dictionary and add some setup code and a jump to the
  22. entry-point word at the beginning?  If not, what the heck does it do?
  23.  
  24.     My guess is that it probably hasn't been done, as I think it might
  25. be kind of painful to turn a Forth dictionary (or some subset thereof)
  26. into a stand-alone code resource.  However, I think it would be
  27. wonderful if it were possible.  Having written these things in the
  28. past, I think the concept of a WDEF in Forth is a beautiful thing.
  29. (Heck, once you had the basics laid out, you could churn out WDEF
  30. after WDEF all the time, leading to a distinctive look for your apps,
  31. albeit a degeneration of the interface standard. :-)
  32.  
  33. //////////////////////////////////////////////////////////////////////
  34. \\ Kenneth C Schalk \\\\"Is conciousness just a special form of \\\\\\  //-\
  35. ////////////////////////  hallucination?" -- Frank Herbert      ////// //-O|
  36. \\ ken@imsa.edu \\\\\\\\"We're each other fragments...but each  \\\\\\ |   |
  37. // schalk@mcs.anl.gov // fragment reveals the [whole] from a    //////  \_/
  38. \\ k-schalk@uiuc.edu \\\ different angle..." -- William Gibson  \\\\\\
  39. //////////////////////////////////////////////////////////////////////
  40.