home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,990 of 117,927   
   albert@spenarnc.xs4all.nl to sidney.reilley.ii@gmail.com   
   Re: Searching the Forth Dictionary   
   01 Jan 25 15:27:42   
   
   In article <20241231181548.1b36ff52e0c2e65596672f3c@gmail.com>,   
   Sidney Reilley   wrote:   
   >Eternal Forth noob here. Tired & retired but still at it.   
   >I'm currently playing with pforth. I'm following along this video:   
   >https://youtu.be/qZKXZifB39Y which is using swiftforth. He uses the   
   >word `edit'  to create a file.   
   >   
   >Is it possible to search a Forth implementation's dictionary to see   
   >if a particular words is built in - like `edit' in this case? TIA ..   
      
   The politically correct way is to use WORD and FIND.   
   Find returns a flag whether the word is found.   
      
   You also can type the word. If the Forth crashes, it is found.   
   (Probably you have not used it correctly.)   
   ------------   
   ~/PROJECT/ciforths/optim/ciforth: lina   
      
   80386 ciforth beta 2020Nov09   
   !   
   Segmentation fault (core dumped)   
   --------------   
   If the Forth stays alive without error, it is found.   
      
   It is system dependant, to find out if there is an error.   
   Some systems have the word "error" or "err" in the response.   
   A question sign is also in indication.   
   If you are lucky there is an identification of the error,   
   such as a number, that you can look up in the documentation.   
   Examples:   
      
   ----------   
   ORANGUTAN   
   ORANGUTAN ? ciforth ERROR # 12 : NOT RECOGNIZED   
   ----------   
   ORANGUTAN   
   ORANGUTAN  ? - unrecognized word!   
   ----------   
      
   123ORANG   
   123ORANG ? ciforth ERROR # 10 : NOT A WORD, NOR A NUMBER OR OTHER DENOTATION   
   ----------   
      
   ORANGUTAN   
   :1: Undefined word   
      
   >>>ORANGUTAN<<<   
   Backtrace:   
   $7FAF70A5CA68 throw   
   $7FAF70A72DD0 no.extensions   
   ----------   
   ORANGUTAN ORANGUTAN ?   
   ----------   
      
   ORANGUTAN   
   Err# -13 ERR: Undefined word.   
    -> ORANGUTAN   
   ----------   
      
   Hopes this help. Experiment more.   
      
   >--   
   >Duke   
   >** Bottom-posting, text-only is the netiquette way! **   
      
   Groetjes Albert   
   --   
   Temu exploits Christians: (Disclaimer, only 10 apostles)   
   Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall   
   Art For Home, Office And Garden Decor - Perfect For Windows, Bars,   
   And Gifts For Friends Family And Colleagues.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca