Hello AmForth-ers: Did any of you put "wordlists" into a good use?
I suspect the answer is no for a simple reason. To use it, say, to create a private "scope" ("namespace") of words / variables / constants one needs to wrap each dictionary entry with calls to get-current, get-order, set-current, set-order, ... too much trouble. What if we decide that all names that begin with a tilde (~) should *automatically* be created into a specific private wordlist. How can we accomplish that? Here's my suggestion for your review: If I am correct the kernel word "header ( addr len wid -- voc-link )" is responsible for creating dictionary entries of all kinds. What if this "header" would begin with a call to a (e)deferred word, say, "autoscope" that would examine the new entry name (via "addr len") and would set the "wid" etc. as needed. In the best Forth tradition let this "autoscope" be initially a NOP and allow the programmer to introduce whatever naming scheme he/she desires via a subsequent IS. Am I missing something? Did I reinvent the wheel? :-) Thanks, Enoch. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel