Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Julian Fondren Newsgroups: comp.lang.forth Subject: Re: Forth Performance Question Date: Fri, 12 Aug 2011 02:10:36 -0500 Organization: A noiseless patient Spider Lines: 37 Message-ID: <8639h75clv.fsf@gmail.com> References: <86zkjhjes4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="cO8zBIpB9LiP7q+vFZIJrA"; logging-data="4756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QIyP00leiSQUboau/scfjMhyirGFtbx0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:MJkh7sSp6UPqaINKtcDuTAS7ESk= sha1:wRaft6tX8AdApAZAId/zSvhn27A= Xref: x330-a1.tempe.blueboxinc.net comp.lang.forth:4759 "Rod Pemberton" writes: > "Elizabeth D. Rather" wrote in message > news:OM2dnfp9muWFzNnTnZ2dnUVZ_sadnZ2d@supernews.com... >> [...] >> Everything else involved in learning Forth >> consists of developing a vocabulary of words, for which you must >> remember what arguments they take and what results they return. >> > > "for which you must remember ..." That's a serious enough deficiency that > one should adopt C. Those are documented for us ... > > If I haven't used a C function somewhat recently, I have to look up it's > arguments. That's after many years of C, and with an excellent memory. > You're telling me that Forth requires you remember all the arguments to all > the functions you use? How do you use a larger library? I'm assuming you > must have a reference manual, ANSI spec, book, or personal notes that > you use to keep track of the parameters for larger sets of Forth words. > > > Rod Pemberton I'll interpret this as a roundabout way of asking "hey, how do Forth programmers look up the usage of a word?" As a slap isn't an option. 1. LOCATE and then EDIT , to first get the stack comment and then pull up the file in which a word is defined, for context. 2. dpANS, reference manual, library documentation, etc. 3. Editor extensions to perform #1 or #2 on a word. 4. System environment extensions (e.g., right-clicking on a selected word) to perform #1 or #2. So, nothing special. Although LOCATE EDIT is a godly combo.