Re: defining an arbitrary type in your newer Fortrans
- From: "highegg" <highegg@xxxxxxxxx>
- Date: 28 Nov 2006 09:50:15 -0800
Jan Vorbrüggen napsal:
P.S. I dont consider "derived types" a good substitute.
Why not?
The textual edits, in C, that #define something for something else are a hack
to paste over C's inadequate type system. There is no need for such in
Fortran. Everything is nicely handled by derived types.
Jan
And there is nothing that prevents you from using a preprocessor with
Fortran,
only there is not a standardized one (there will be in F2008). Many
compilers
support enhancing Fortran with C preprocesssing directives (usually
restricted,
because CPP is ill-suited for Fortran). I am (sometimes) using m4 with
Fortran
to get a quite satisfactory replacement for C macros and even C++
templates.
.
- References:
- defining an arbitrary type in your newer Fortrans
- From: Ancient_Hacker
- Re: defining an arbitrary type in your newer Fortrans
- From: Jan Vorbrüggen
- defining an arbitrary type in your newer Fortrans
- Prev by Date: Re: defining an arbitrary type in your newer Fortrans
- Next by Date: Re: Fortran Error Problem
- Previous by thread: Re: defining an arbitrary type in your newer Fortrans
- Next by thread: Re: defining an arbitrary type in your newer Fortrans
- Index(es):
Relevant Pages
|