Re: The IMMEDIATE mess
- From: "J Thomas" <jethomas5@xxxxxxxxx>
- Date: 31 Aug 2006 08:04:36 -0700
pablo reda wrote:
Mark W. Humphries ha escrito:
For increased flexibility and expressive power.
I not found any example that confirm this afirmation,
tell me an example when be neccesary the compilers words and not be
possible whitout this compilers words, and not be a optimization trick
!!
: array
create dup , 1+ * chars allot
does> dup >r @ * + chars r> + ;
8 8 array chessboard
knight 1 5 chessboard c!
What would you do with no compiler? Would you write
( x y addr ) dup >r @ * + chars r> +
every time you compute an array address?
Well, but you can make named macros that get interpreted when the name
is invoked. That gives you all the advantages of compilation except
optimisation.
One bug (or feature), if you redefine a name then won't old
previously-defined words that call it all start getting the new
version?
.
- Follow-Ups:
- Re: The IMMEDIATE mess
- From: pablo reda
- Re: The IMMEDIATE mess
- References:
- Re: The IMMEDIATE mess
- From: Julian V. Noble
- Re: The IMMEDIATE mess
- From: Alex McDonald
- Re: The IMMEDIATE mess
- From: GerryJ
- Re: The IMMEDIATE mess
- From: Andreas Kochenburger
- Re: The IMMEDIATE mess
- From: J Thomas
- Re: The IMMEDIATE mess
- From: GerryJ
- Re: The IMMEDIATE mess
- From: J Thomas
- Re: The IMMEDIATE mess
- From: GerryJ
- Re: The IMMEDIATE mess
- From: pablo reda
- Re: The IMMEDIATE mess
- From: Andreas Kochenburger
- Re: The IMMEDIATE mess
- From: pablo reda
- Re: The IMMEDIATE mess
- From: Mark W. Humphries
- Re: The IMMEDIATE mess
- From: pablo reda
- Re: The IMMEDIATE mess
- Prev by Date: Re: 32-bit CRC table generation at compile time in C, was Re: The IMMEDIATE mess
- Next by Date: Re: The IMMEDIATE mess
- Previous by thread: Re: The IMMEDIATE mess
- Next by thread: Re: The IMMEDIATE mess
- Index(es):
Relevant Pages
|