Re: How to return a variable length substring from a function ?



Larry Gates wrote:
On Sat, 31 Jan 2009 10:45:30 -0800, Richard Maine wrote:

Clive Page <junk@xxxxxxxxxxxx> wrote:

In message <1iucx6f.142ctc318dqrb4N%nospam@xxxxxxxxxxxxx>, Richard Maine
<nospam@xxxxxxxxxxxxx> writes
Assumed length character functions are incredibly obscure and don't do
anything like what you would either think or want. At least 90% of the
people who try to use them don't understand what they do. That 90% is
probably low; more like 99%.
I'd like to claim to be among the 1% (or it is 10%) who understand them,
Aha. Trivia question time, then. :-) These functions are good subjects
for such, having several obscure gotchas. There are some I don't think I
can answer myself, at least without a lot of work, and I still might get
it wrong. I was thinking I might have seen an interp request on one
nasty case that I don't recall the answer to. I don't recall enough
details to reconstuct that one off the top of my head.

The following is one that there's a reasonable chance you might actually
know or be able to figure it out. If so, congratulations; you are
special. (But we knew that. :-))

What is the unusual consequence of putting such a function in a module?

This isn't an attempt to take a stab at the answer but to illuminate my
reading from yesterday in the Adams text.

In §11.3.1 the form of a module is given as
MODULE module-name
[specification part]
[ CONTANS
module subprogram
[module-subprogram] ...]
END [MODULE [module-name]]

I don't see any execution part here. What gives?

The module subprogram(s) would be/are executable code.

That the question???

--
.



Relevant Pages

  • Re: How to return a variable length substring from a function ?
    ... nasty case that I don't recall the answer to. ... details to reconstuct that one off the top of my head. ... The following is one that there's a reasonable chance you might actually ...
    (comp.lang.fortran)
  • Re: Joyce: lived in number seven
    ... We threw off the yoke of monarchy ... some few years back, as you may recall. ... Congratulations on being the first to respond to my provocation! ...
    (alt.usage.english)
  • Re: Joyce: lived in number seven
    ... We threw off the yoke of monarchy ... some few years back, as you may recall. ... Congratulations on being the first to respond to my provocation! ...
    (alt.usage.english)
  • Greatest Rome finals
    ... Congratulations to Nadal. ... As long as Rome is best of three, ... So it's time to recall these -- ... beatdowns as well. ...
    (rec.sport.tennis)
  • Re: Joyce: lived in number seven
    ... We threw off the yoke of monarchy ... some few years back, as you may recall. ... Congratulations on being the first to respond to my provocation! ...
    (alt.usage.english)