Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #10817
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Is there a word to compile a sequence of words which follows into another word? |
| Date | 2012-04-03 12:58 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2012Apr3.145851@mips.complang.tuwien.ac.at> (permalink) |
| References | <jl8cma$gl6$1@speranza.aioe.org> <3e008a24-1ed9-42fe-bbe0-1197d2f9a0ac@r9g2000yqd.googlegroups.com> |
Mark Wills <markrobertwills@yahoo.co.uk> writes:
>Then why not:
>
>: InheritsLoop CREATE DOES> DROP 100 0 DO I . LOOP ;
>
>FRED InheritsLoop
Even simpler:
: InheritsLoop 100 0 DO I . LOOP ;
: FRED InheritsLoop ;
Yes, if an ordinary definition works, use an ordinary definition. It
has fewer restrictions than a macro. But there are cases where an
ordinary colon definition does not work, e.g.:
: repeat postpone again postpone then ; immediate
and there it gets a little more readable if you write
: repeat ]] again then [[ ; immediate
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2011: http://www.euroforth.org/ef11/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@noavailemail.cmm> - 2012-03-31 21:57 -0400
Re: Is there a word to compile a sequence of words which follows into another word? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-01 05:48 -0500
Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-02 02:07 -0400
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:29 -0700
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:38 -0700
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 09:40 -0700
Re: Is there a word to compile a sequence of words which follows into another word? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-02 11:38 -1000
Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 10:31 +0000
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 05:31 -0700
Re: Is there a word to compile a sequence of words which follows into another word? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-03 08:31 -1000
Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-03 06:36 -0400
Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 12:03 +0000
Re: Is there a word to compile a sequence of words which follows into another word? "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-04 04:58 -0400
Re: Is there a word to compile a sequence of words which follows into another word? "A. K." <akk@nospam.org> - 2012-04-02 23:31 +0200
Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-02 11:04 +0000
Re: Is there a word to compile a sequence of words which follows into another word? BruceMcF <agila61@netscape.net> - 2012-03-31 19:30 -0700
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-02 08:39 -0700
Re: Is there a word to compile a sequence of words which follows into another word? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-05 23:55 -0700
Re: Is there a word to compile a sequence of words which follows into another word? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 01:02 -0700
Re: Is there a word to compile a sequence of words which follows into another word? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-03 12:58 +0000
Re: Is there a word to compile a sequence of words which follows into another word? Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-03 03:00 -0700
csiph-web