From: Rick M. <obj...@gm...> - 2009-04-01 15:04:21
|
The "scope" is the hierarcy level that defines a given method. For example, ::class foobar ::method foo say "hello" ::class fubar subclass foobar ::method fu say "goodbye" The scope of the "foo" method is the .Foobar class. The scope of the "fu" method is the "fu" class. The method scope determines a lot of things, such as which variable pool gets accessed by the EXPOSE instruction and what value SUPER gets set to in that method's context. Generally, the scope object is a class, but for methods that are added directly to object instances, the scope ends up being the object instance. I can't really think of many good uses for this, but it seemed like it should be made available for completeness. Rick On Wed, Apr 1, 2009 at 10:47 AM, Mark Miesfeld <mie...@gm...> wrote: > One of the methods in the API is GetScope(), which returns a > RexxObjectPtr that is the current active method's scope. > > I'm having trouble figuring out exactly what the scope object is, or > really more to the point, what I could do with it. > > -- > Mark Miesfeld > > ------------------------------------------------------------------------------ > _______________________________________________ > Oorexx-devel mailing list > Oor...@li... > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > |