Hi Torsten, > I tried my luck with multitasking but was not successful. Calling > 'task' hangs the system. In task 'enviroment?' seemed to the the > culprit as it also simply hangs the system then I saw that '/user' > does not appear in the word list. This is also true for some other > words like 'cpu', '/hold' etc. All the missing words seem to have > been assembled according to duemilanove.lst. > > Is there anything I could do to find out what happens?
First: To get a list of all the environemt queries available the following command can be used > environment show-wordlist /user cpu version forth-name /hold /pad wordlists ok > s" /user" environment? . . -1 38 ok > Second: Environment queries cannot be used in colon definitions (like : foo s" /user" environment? ... ) this due to the fact that environment? expects the string in RAM and s" compiles the string into flash and returns the flash address at runtime. A workaround would look like : foo [ s" /user" environment? drop ] literal ... A better solution would be to make environment? state smart and make it use the flash strings if compiled. Another one would be to change s" to copy the flash string back to ram and leave its address there when called. HTH Matthias ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel