Re: Parsing challenge to reduce blanks



"David Frank" <dave_frank@xxxxxxxxxxx> wrote in message
news:nbQHe.9334$6f.6929@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> adding 1 trailing blank to a function's otherwise exact returned length
> wont be a problem in F2003 syntax,
> since
> character(:),allocatable :: outline will be legal

But it makes the most sense to me for the function itself to
detect whether that trailing blank should be inserted and to
insert it if required without the need for further processing.
How useful would cos(x) be if you had to check whether the
input was some special value like pi/5 so you would in that
case have to substitute the correct value of (1+sqrt(5))/4
rather than just be able to accept the value of cos(x) without
further processing?

--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


.



Relevant Pages

  • Re: INSPECT and TRAILING syntax
    ... with TRAILING you could accomplish with existing syntax, ... the syntax for that functionality is pretty straightforward -- adds ... for that reason the suggestions to provide TRAILING were not followed. ... Bill Klein ...
    (comp.lang.cobol)
  • Re: [SLE] Stripping whitespace in bash script
    ... On Friday 11 August 2006 17:34, Theo v. Werkhoven wrote: ... I think you mixed up the arbitrary substitution syntax with the trailing ... yada yada yada) if Dylan wanted all spaces removed or only the ...
    (SuSE)
  • Re: Again: Please hear my plea: print without softspace
    ... > character instead of a ',' to alter the behavior of print. ... > trailing '+' to indicate that what follows is to concatenate ... That looks like "magic syntax", and should rightfully return a syntax ... Changing the behavior of print when a syntax error is present, ...
    (comp.lang.python)
  • Re: Parsing challenge to reduce blanks
    ... adding 1 trailing blank to a function's otherwise exact returned length ... wont be a problem in F2003 syntax, ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: Veteran Programmers!
    ... OrgAbuseEmail: abuse@xxxxxxxxxxxx ... Website hosted on Yahoo ... (Remove trailing X from email addresses.) ... Prev by Date: ...
    (comp.lang.c)