Well, assuming your are really calling this as a routine rather than
external command, just use the return instruction like you normally
would.  Any object can be passed back as a return result, not just
strings (which are also "just objects").

Rick

On Sun, Jan 25, 2009 at 2:25 PM, rob...@garrettfamily.us
<rob...@garrettfamily.us> wrote:
> (Apologies in advance if I've sent this to an inappropriate list)
>
> Is it possible to pass an instance of an object from an externally called
> routine back to the parent routine? If so, how?
>
> Example:
> Assume two separate REXX routines (separate files):  MAIN.rex and
> LOGGER.rex.
> I'd like to be able to, from MAIN, call LOGGER (passing it a file name), and
> have LOGGER create an instance of a stream object, open the file, and then
> pass the stream object back to MAIN at which point MAIN would be able to use
> the stream object to write to the file (or perhaps pass it to other external
> routines that would also be able to use it).
> I'm already doing this with LOGGER being a routine that is part of MAIN
> (both located in the same file), but I want to be able to break LOGGER out
> into a separate file.
>
> Is this possible?
>
> I've been writing and using REXX for many years in the mainframe environment
> so I'm quite familiar with the core language, but the facilities of ooREXX
> are still somewhat new to me.
>
> Thanks,
>
> Robert Garrett
>
> "A human being should be able to change a diaper,
> plan an invasion, butcher a hog, conn a ship,
> design a building, write a sonnet, build a wall,
> set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, pitch manure,
> solve equations, analyze a new problem,
> program a computer, cook a tasty meal,
> fight efficiently, and die gallantly.
> Specialization is for insects."    -    Robert A. Heinlein
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to