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

2019-01-30 Thread Rony G. Flatscher
On 30.01.2019 11:57, Rick McGuire wrote: > > On Wed, Jan 30, 2019 at 5:51 AM Rony G. Flatscher > wrote: > > Thanks, one last question in this context. > > On 29.01.2019 21:07, Rick McGuire wrote: >> On Tue, Jan 29, 2019 at 1:18 PM Rony G Flatscher >

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

2019-01-30 Thread Rick McGuire
On Wed, Jan 30, 2019 at 5:51 AM Rony G. Flatscher wrote: > Thanks, one last question in this context. > > On 29.01.2019 21:07, Rick McGuire wrote: > > On Tue, Jan 29, 2019 at 1:18 PM Rony G Flatscher > wrote: > >> Looked thru the code, a few quick questions: >> >> If a command handler that has

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

2019-01-30 Thread Rony G. Flatscher
Thanks, one last question in this context. On 29.01.2019 21:07, Rick McGuire wrote: > On Tue, Jan 29, 2019 at 1:18 PM Rony G Flatscher > wrote: > > Looked thru the code, a few quick questions: > > If a command handler that has no redirection, would the

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

2019-01-29 Thread Rick McGuire
On Tue, Jan 29, 2019 at 1:18 PM Rony G Flatscher wrote: > Looked thru the code, a few quick questions: > > If a command handler that has no redirection, would the last argument > ioctl be NULL? > No, if the command handler is registered as a redirecting handler, then it will always be passed an

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

2019-01-29 Thread Rony G Flatscher
Looked thru the code, a few quick questions: If a command handler that has no redirection, would the last argument ioctl be NULL? Can one query the list (names) of the currently loaded command handlers? Would one be able to remove a command handler by name? —-rony Rony G. Flatscher (mobil/e)

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

2019-01-29 Thread Rony G. Flatscher
On 28.01.2019 22:24, Rick McGuire wrote: > 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. Thanks, will do. ---rony

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

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

[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