Re: The IMMEDIATE mess




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?

.



Relevant Pages

  • Re: A Tale of Two Memory Managers (long)
    ... compilers. ... but the JIT also generates atrocious code. ... Multidimensional array access is even worse. ... deep implications for performance as every structure goes through the stack. ...
    (borland.public.delphi.non-technical)
  • Re: [OT] Funny
    ... matter of what is likely to happen in practice than what the standard ... Or more precisely, mixing f77 and f90. ... That's because f77 had no concept of array stride (i.e. noncontiguous ... to do was pass its starting address...and that's all most compilers ...
    (comp.lang.fortran)
  • Re: xlf Fortran Oddity
    ... I do not believe that Allocatable Derived Type is a Fortran 90/95 construct. ... This is supported by some compilers as an F2k extension. ... When compiled with array bounds checking, ... allocate & initialize derived type ...
    (comp.lang.fortran)
  • Re: internal read of character array. F/ifort differences
    ... undefined variables. ... different resultsfr on different compilers or situations. ... the array defined by the subroutine argument Headers, ... doesn't happen until after the end-of-file is detected. ...
    (comp.lang.fortran)
  • Re: xlf Fortran Oddity
    ... END TYPE MyType ... And, FWIW, I've had some minor issues with the xlf compilers so I wouldn't grant it any ... When compiled with array bounds checking, ...
    (comp.lang.fortran)