No, you do not have it right at all.  Resolution of ::requires directives is a runtime thing, not a compile time thing.  At execution time, the running program will resolve any ::requires references and load those files.  Once a required file has been loaded, then the requiring program can see any resources in the loaded file that are marked as PUBLIC.  Since your class is marked as PRIVATE, it will not be visible to any code in the file a.cls.  As Mark stated, using rexxc on the code has no bearing on how the scoping is handled. 

Rick


On Thu, May 16, 2013 at 12:08 PM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
OK, I think this is what I've misunderstood - the compiler doesn't resolve the ::REQUIRES directives!

Thanks,
Staffan



On Thu, May 16, 2013 at 6:02 PM, Mark Miesfeld <miesfeld@gmail.com> wrote:
On Thu, May 16, 2013 at 8:55 AM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
 
The point I was trying to make was that ab.bin is a containing rexx program but apparently not.


Well, sure, you can say it is a "containing rexx program."   And it is.

But, it does not contain this:

::CLASS B PRIVATE
::METHOD init
say 'Hello from B'

That code is only in the b.cls "containing rexx program."  It is not in anything else.

By the way, it has nothing to do with using rexxc.

--
Mark Miesfeld

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users