Search Path for ::Requires - REXX

This is a discussion on Search Path for ::Requires - REXX ; Hi, I'm using ooRexx on Windows XP, and I can't find this explicitly documented in the manuals: What is the search order for files specified on a ::Requires statement? Can I safely assume that it's the same as the search ...

+ Reply to Thread
Results 1 to 5 of 5

Search Path for ::Requires

  1. Default Search Path for ::Requires

    Hi,

    I'm using ooRexx on Windows XP, and I can't find this explicitly
    documented in the manuals: What is the search order for files
    specified on a ::Requires statement? Can I safely assume that
    it's the same as the search order for external function calls
    (which is well documented)? Should I just ensure that the files
    are in a directory specified in my PATH environment variable to
    be safe?

    TIA for any help,


    Bernie Schneider

    The individual has always had to struggle to keep from being
    overwhelmed
    by the tribe. To be your own man is a hard business. If you try
    it, you will
    be lonely often and sometimes frightened. But no price is too
    high to pay
    for the privilege of owning yourself.

    -- Friedrich Nietzsche --



  2. Default Re: Search Path for ::Requires

    Bernie Schneider wrote:

    > Can I safely assume that
    > it's the same as the search order for external function calls
    > (which is well documented)?


    Without grabbing the docs, I do believe that is a correct statement.

    > Should I just ensure that the files
    > are in a directory specified in my PATH environment variable to
    > be safe?


    That is what I do.

    So that the system path would not get overloaded, I have an RFE out for a new variable to be set and checked ahead of PATH sort of like ClassPath for Java. Would be nice to have ooRexx look through
    that path for all sorts of external file Rexx things - procedures, ::requires, DLL's, and so forth.

    --
    Michael Lueck
    Lueck Data Systems
    http://www.lueckdatasystems.com/

    Remove the upper case letters NOSPAM to contact me directly.

  3. Default Re: Search Path for ::Requires

    Thanks Michael,

    That's a big help to me.

    >> So that the system path would not get overloaded, I have an

    RFE out for a new variable to be set
    >> and checked ahead of PATH sort of like ClassPath for Java.

    Would be nice to have ooRexx look
    >> through that path for all sorts of external file Rexx

    things - procedures, ::requires, DLL's, and
    >> so forth.


    I like that idea since my PATH is already pretty overloaded. It
    would also improve consistency among all of the various types of
    external modules that ooRexx may access. It would make it much
    easier to package and deploy applications also. I can remember
    the days when Rexx was almost completely unmodular. Now with
    ooRexx, we have a myriad of means of modularizing our programs:
    classes, the macrospace, external function libraries, etc.,
    which greatly enhance a programmer's options, but I'm never sure
    about the best place for locating the modules. What with the
    various types of internal, external, and user defined (via
    RexxUtil's SysSearchPath function) searches performed by ooRexx,
    I'm always confusing myself.

    Thanks again,

    -- Bernie Schneider --

    The individual has always had to struggle to keep from being
    overwhelmed
    by the tribe. To be your own man is a hard business. If you try
    it, you will
    be lonely often and sometimes frightened. But no price is too
    high to pay
    for the privilege of owning yourself.




  4. Default Re: Search Path for ::Requires


    Bernie Schneider wrote:
    > Thanks Michael,
    >
    > That's a big help to me.
    >
    >
    >>>So that the system path would not get overloaded, I have an

    >
    > RFE out for a new variable to be set
    >
    >>>and checked ahead of PATH sort of like ClassPath for Java.

    >
    > Would be nice to have ooRexx look
    >
    >>>through that path for all sorts of external file Rexx

    >
    > things - procedures, ::requires, DLL's, and
    >
    >>>so forth.

    >
    >
    > I like that idea since my PATH is already pretty overloaded. It
    > would also improve consistency among all of the various types of
    > external modules that ooRexx may access. It would make it much
    > easier to package and deploy applications also. I can remember
    > the days when Rexx was almost completely unmodular. Now with
    > ooRexx, we have a myriad of means of modularizing our programs:
    > classes, the macrospace, external function libraries, etc.,
    > which greatly enhance a programmer's options, but I'm never sure
    > about the best place for locating the modules. What with the
    > various types of internal, external, and user defined (via
    > RexxUtil's SysSearchPath function) searches performed by ooRexx,
    > I'm always confusing myself.


    A ::requires directive is carried out by the interpreter on behalf of the programmer as a simple
    CALL (cf. <http://www.oorexx.org/rexxref/x4441.htm>). In general, the search order can be looked-up
    in the docs (cf. <http://www.oorexx.org/rexxref/x16250.htm#XSEARCHO>).

    The documentation can be downloaded/viewed as PDF or viewed as HTML-chunks online at
    <http://www.ooRexx.org>.

    HTH,

    ---rony

  5. Default Re: Search Path for ::Requires

    Hi Rony,

    Yes, I have studied those pages in the current documentation,
    but I just didn't get the part about the ::REQUIRES target being
    treated the same as a CALL target for an external routine.
    Something about it didn't seem right. I get it now.
    Therefore, by inference, the search order for the ::REQUIRES
    should be the same as for an external CALL. Thanks for pointing
    that out.

    Bernie Schneider

    The individual has always had to struggle to keep from being
    overwhelmed
    by the tribe. To be your own man is a hard business. If you try
    it, you will
    be lonely often and sometimes frightened. But no price is too
    high to pay
    for the privilege of owning yourself.

    -- Friedrich Nietzsche --
    "rony" <Rony.Flatscher@wu-wien.ac.at> wrote in message
    news:dml85g$2ib8$1@trane.wu-wien.ac.at...
    >
    > Bernie Schneider wrote:
    > > Thanks Michael,
    > >
    > > That's a big help to me.
    > >
    > >
    > >>>So that the system path would not get overloaded, I have an

    > >
    > > RFE out for a new variable to be set
    > >
    > >>>and checked ahead of PATH sort of like ClassPath for Java.

    > >
    > > Would be nice to have ooRexx look
    > >
    > >>>through that path for all sorts of external file Rexx

    > >
    > > things - procedures, ::requires, DLL's, and
    > >
    > >>>so forth.

    > >
    > >
    > > I like that idea since my PATH is already pretty overloaded.

    It
    > > would also improve consistency among all of the various

    types of
    > > external modules that ooRexx may access. It would make it

    much
    > > easier to package and deploy applications also. I can

    remember
    > > the days when Rexx was almost completely unmodular. Now with
    > > ooRexx, we have a myriad of means of modularizing our

    programs:
    > > classes, the macrospace, external function libraries, etc.,
    > > which greatly enhance a programmer's options, but I'm never

    sure
    > > about the best place for locating the modules. What with the
    > > various types of internal, external, and user defined (via
    > > RexxUtil's SysSearchPath function) searches performed by

    ooRexx,
    > > I'm always confusing myself.

    >
    > A ::requires directive is carried out by the interpreter on

    behalf of the programmer as a simple
    > CALL (cf. <http://www.oorexx.org/rexxref/x4441.htm>). In

    general, the search order can be looked-up
    > in the docs (cf.

    <http://www.oorexx.org/rexxref/x16250.htm#XSEARCHO>).
    >
    > The documentation can be downloaded/viewed as PDF or viewed as

    HTML-chunks online at
    > <http://www.ooRexx.org>.
    >
    > HTH,
    >
    > ---rony




+ Reply to Thread

Similar Threads

  1. Read BMP File Requires Absolute Path
    By Application Development in forum labview
    Replies: 0
    Last Post: 11-06-2007, 10:10 AM
  2. pipe requires full path to script
    By Application Development in forum Mutt
    Replies: 2
    Last Post: 10-28-2007, 05:55 PM
  3. Don't understand module search path...
    By Application Development in forum Python
    Replies: 1
    Last Post: 10-04-2007, 01:48 PM
  4. assembly search path
    By Application Development in forum CSharp
    Replies: 2
    Last Post: 08-31-2007, 10:48 AM
  5. g++ search path
    By Application Development in forum c++
    Replies: 1
    Last Post: 07-29-2007, 04:16 PM