A couple of years ago (around April 2009), I did an ooRexx project with
multiple files (containing classes and routines) in three directories. I set
up a single file with most of the ::requires statements in it, and called it
at the start of the program. This worked.

I tried re-running the program the other day, and it didn't work (couldn't
find classes/routines). I conclude that the behavior of "::requires" has
changed since early-to-mid 2009. Is this the case?

Many thanks,
Oliver

 

-----Original Message-----
From: Rick McGuire [mailto:object.r...@gmail.com]
Sent: 30 June 2011 21:25
To: Open Object Rexx Users
Subject: Re: [Oorexx-users] How does ::REQUIRES work?

Each file identifies which other files are required using the ::REQUIRES
directives.  Each file only has visibility to those other files that it
identifies as needing.  Since each element identifies only the bits it
needs, it avoids potential naming conflicts with other files that might be
in use.

Rick

On Thu, Jun 30, 2011 at 6:14 PM,  <os...@simsassociates.co.uk> wrote:
> I have four .rex files, each with a different set of ::requires
directives.
> The four files refer to one another, all four are part of a single 
> application, and all run in the same process. In fact they are the 
> files attached to my last post "An Edit Control that accepts only 
> decimal numbers".
>
> However, if I place all the "::requires" directives in the first file 
> to be loaded (i.e the file I start from the command line) and comment 
> out the "::requires" directives from the other three files, I get 
> errors resulting from classes not found.
>
> I had thought that the ::requires directive applied throughout the 
> executing process, but apparently not.
>
> Can anyone tell me precisely how the "requires" directive is applied 
> at run-time when a single app consists of multiple files?
>
> Many thanks,
> Oliver
>
>
> ----------------------------------------------------------------------
> -------- All of the data generated in your IT infrastructure is 
> seriously valuable.
> Why? It contains a definitive record of application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>

----------------------------------------------------------------------------
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to