Re: [Oorexx-devel] Question ad AddCommandHandler()

2019-01-28 Thread Rick McGuire
I suggest you look at the test command handler that Erich just added to the test cases. This will show you how the command handlers are implemented and how to use the redirection APIs. Rick On Mon, Jan 28, 2019 at 4:14 PM Rony G Flatscher wrote: > How does the implentation (have to?) differ? >

Re: [Oorexx-devel] Question ad AddCommandHandler()

2019-01-28 Thread Rony G Flatscher
How does the implentation (have to?) differ? The readon of asking: once ooRexx 5 gets released, I plan a version of BSF4ooRexx that exploits the new ooRexx features. As the current version already supports command handlers implemented in Java (or in ooRexx via BSF4ooRexx) at interpreter creat

Re: [Oorexx-devel] Question ad AddCommandHandler()

2019-01-28 Thread Rick McGuire
The two handler types have different call signatures. When you register the handler, you are telling the interpreter which call signature is used to call the handler. Rick On Mon, Jan 28, 2019 at 1:43 PM Rony G. Flatscher wrote: > Question ad new C++ method "context->AddCommandEnvironment(name,

[Oorexx-devel] Question ad AddCommandHandler()

2019-01-28 Thread Rony G. Flatscher
Question ad new C++ method "context->AddCommandEnvironment(name, handler, type);", where the documentaiton for "type" reads: "type": The type of command handler to add. DIRECT_COMMAND_ENVIRONMENT for a command handler with no support for redirection. REDIRECTING_COMMAND_ENVIRONMENT f