Re: Are generic linked lists possible in Fortran95?
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Fri, 27 Jan 2006 17:24:10 -0800
Rich Townsend <rhdt@xxxxxxxxxxxxxxxxxxx> wrote:
> Paul Van Delst wrote:
> > [about generic lists]
> > Is this doable in Fortran95 ?
> >
>
> In a word, no. I'm sure the brains of the group can explain specifically why
> not, but this is just to give a quick answer. It really comes down to the fact
> that Fortran is strongly typed, IMHO.
>
> However, it might be sort of possible in F2003, where (IIRC) you can have
> typless pointers or somesuch.
There are various hacks one can do in f95, but basically, no, the
language doesn't support that directly.
There are multiple ways in f2003. For a start, this is one of the most
basic examples of what type extension is about. I don't think I'll try a
tutorial on the subject on the fly in a posting here.
Also, yes, you could use "typeless pointers" (which you won't find by
that name, but are there, "disguised" as a C interop feature, but
useful in contexts unrelated to C).
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Are generic linked lists possible in Fortran95?
- From: Paul Van Delst
- Re: Are generic linked lists possible in Fortran95?
- References:
- Are generic linked lists possible in Fortran95?
- From: Paul Van Delst
- Re: Are generic linked lists possible in Fortran95?
- From: Rich Townsend
- Are generic linked lists possible in Fortran95?
- Prev by Date: Re: Are generic linked lists possible in Fortran95?
- Next by Date: Re: On megaflops
- Previous by thread: Re: Are generic linked lists possible in Fortran95?
- Next by thread: Re: Are generic linked lists possible in Fortran95?
- Index(es):