Re: Proper way to return a string
- From: Ron Shepard <ron-shepard@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 18:41:25 -0600
In article <2006122715420316807-gsande@worldnetattnet>,
Gordon Sande <g.sande@xxxxxxxxxxxxxxxx> wrote:
Probably because for a character function you need to declare a
fixed size but it can vary if you use a subroutine.
Assuming that you use Fortran character variables for "strings". ;-)
Perhaps I misunderstand, but I think you have the same flexibility
with functions and subroutines. Since f77, both allow the result to
be declared as assumed length (i.e. (*), or in f90, (len=*)).
$.02 -Ron Shepard
.
- Follow-Ups:
- Re: Proper way to return a string
- From: Beliavsky
- Re: Proper way to return a string
- From: e p chandler
- Re: Proper way to return a string
- References:
- Proper way to return a string
- From: Jeremy
- Re: Proper way to return a string
- From: Steven G. Kargl
- Re: Proper way to return a string
- From: Gordon Sande
- Proper way to return a string
- Prev by Date: Re: Proper way to return a string
- Next by Date: Dimension attribute based on host-associated variable - bug in Intel Fortran
- Previous by thread: Re: Proper way to return a string
- Next by thread: Re: Proper way to return a string
- Index(es):