Re: Proper way to return a string



In article <2006122715420316807-gsande@worldnetattnet>,
Gordon Sande <g.sande@xxxxxxxxxxxxxxxx> writes:
On 2006-12-27 15:21:38 -0400, kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(Steven G. Kargl) said:


For strings, I always use subroutines. I don't remember why I
developed that habit. It is just something I do.

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". ;-)


I know some will consider it blasphemy, but I actually prefer C when
working with characters and/or strings. :-)

To keep the stone thowers at bay, if I had not investigated/learned C
for this purpose, then I would never have developed any of the gfortran
patches that I've submitted. ;-)

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: Whats right with FORTH and wrong with c.l.f.
    ... do feature easy mechanisms for calling C or other subroutines, ... so their users have the same access to libraries as anyone else. ... strings and wrappers for common operations. ... have not caught up with the commercial Forths, ...
    (comp.lang.forth)
  • Re: What are OOPs Jargons and Complexities?
    ... languages - wouldn't it be GREAT to actually be fluent in the languages ... And the inner subroutines are what's called Methods. ... the idiomatic Java way of writing this looks ... > String, there are Methods to manipulate strings, such as finding the ...
    (comp.unix.programmer)