Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#61 Allow data directive statements in Rexx files.

5.0.0
accepted
Rick McGuire
None
doc+test
5
2014-09-25
2005-04-29
Rick McGuire
No

Sometimes it is nice to be able to include data
directly within a Rexx program without having to worry
about whether it is quoted properly or conforms to
valid Rexx syntax (such as help information).
Something similar to XML's CDATA tags would work quite
nicely:

::data foo
whatever I want to put here is fine....
on as many lines as I want!
::::data -- end of data marker....can be anything
"distinctive"

The data would be available in the local environment as
an array of lines, and should be scopeable with the
public keyword.

Discussion

  • LesK
    LesK
    2007-11-09

    Logged In: YES
    user_id=1659105
    Originator: NO

    Allowing a pointer to a file would be nice too!

     
  • Rick McGuire
    Rick McGuire
    2014-06-29

    • status: open --> accepted
    • assigned_to: Rick McGuire
    • Pending work items: --> none
     
  • LesK
    LesK
    2014-06-30

    Wouldn't that limit it to being used at the end of a file?
    What if you wanted more than one of them, perhaps within some other
    directive?
    I've always used the universally usable:

    beginhelp=thisline()+1 /
    Help prose
    /
    endhelp=thisline()-2
    .
    .
    thisline: return sigl

    Perhaps not as pretty, but much more flexible.

     
  • Rick McGuire
    Rick McGuire
    2014-09-25

    • Pending work items: none --> doc+test
    • Milestone: None --> 5.0.0
     


Anonymous


Cancel   Add attachments