... In the first place, the word that Mitch and others are referring to is BUFFER: (it's been around since the 80's). It can coexist with CREATE ... No code...
... No, this wouldn't have to be changed. The code with CREATE still works, it just has a little more overhead than the BUFFER: solution. You only have to ...
It's not just the source code that is broken, it's the documentation too. Documentation that changes for life-critical applications has to be re-submitted -...
... Stephen said no such thing! What I said was that <BUILDS ... DOES> may have some merit, but that Hugh has provided no numeric evidence for his assertions....
I apologize to Stephen Pelc for crediting him with the idea of introducing <BUILDS for use with DOES>, but also allowing CREATE to still be used in this manner...
310
Mitch Bradley
wmb@...
Jul 2, 2009 4:13 pm
... That expectation does not agree with my expectation at all....
... No, it is not okay. It appears that you have not been following the Forth200x process and have not read the current draft as your expectations seem to be...
... This is why it was mandated that DOES> is only guaranteed to work with CREATE, not with other defining words. Operationally, FORTH, Inc. and most other...
Posted by: "Hugh Aguilar" ... Rubbish. VFX treats children of CREATE as CONSTANTs. It can also optimise the DOES> clause such that when DOES> x + @ ; is the...
... Having spent years creating documentation for medical products I wholeheartedly agree with Elisabeth. The last thing the community needs is for Forth to...
... Of course there is. bigForth and gforth-fast detect CREATE in COMPILE, and compile a literal when it's a CREATE without DOES>. VFX Forth does the same ...
This is long and philosophical, I intended it primarily for Hugh Aguilar and posted it here in case it amuses someone. It does not need careful attention as...
Having a word perform two disparate functions is bad design. Everybody knows that! The well-known proverb is: "Let the dictionary do the deciding" (see the...
Author ... Hugh Aguilar Problem ... There is no good way to construct colon words from within other colon words. We can compile the code okay, but we can't...
... I really think you should take Stephen's advice and look at other Forth systems before you propose something. Gforth e.g. already has a solution to your...
... I would have said put them in a buffer and EVALUATE them would be better, though it's still kind of kludgy. ... It's trival to use GET-CURRENT if the word...
321
Anton Ertl
anton@...
Jul 5, 2009 12:16 pm
... I think that his approach here is ok. An RfD is a request for *discussion* after all. So if there are other solutions to the problem, they will hopefully...
... Win32Forth also treats CREATEd words with no DOES> as literals ( and also objects, CONSTANTs and all types of variable ). The trick is CREATE sets the...
... OK. Overloading CREATE was a bad idea from the beginning, but it's too late to fix the problem now and most compiler-writers have adapted to handle it. One...
... How do you figure CREATE is "overloaded"? Cheers, Elizabeth -- ================================================== Elizabeth D. Rather (US & Canada)...
... I'm not clear quite what the problem here is. When do you want to get the name? If you want to get the name when the word executes, then why not put the...
... I don't think either is particularly difficult to explain, though I doubt novices would be using them, since they are both advanced concepts which IMO...
... CREATE always had to work with ;CODE anyway, so whoever thunk of using an assembler call instruction to locate the code (at least in ITC Forths) did us all...
... The innovation you mention was the work of Dean Sanderson, at FORTH, Inc., in the early 80's. Thank you for pointing out that CREATE hasn't changed and...
As for whether words such as HEADER and NEXTNAME are "advanced" and appropriate for novices, or not, I would say that the question is moot because Forth...
... Yeah, right. Over the weekend one can not only read the text, but also memorize over 400 words with their definitions and stack effects. All without...
332
Mitch Bradley
wmb@...
Jul 8, 2009 3:42 am
Here is my swag at the right way to do DOES>. I don't mean DOES> exactly, but rather the abstract thing that DOES> does. (How's that for an obtuse...
... The factoring of HEADER is actually more complex. In practise, as per FIG-Forth, you need doCreate, doColon and friends as well. With modern CPUs and...
334
Anton Ertl
anton@...
Jul 8, 2009 1:28 pm
... align here <builder-stuff> ['] MY-ACTION ACTOR: ; ... This technique can also be varied to not work with addresses, but directly with the data (where it is...