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?
>
> 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 creation time, I would
> like to support this new API in all of its facets.
>
> —-rony
>
>
> Rony G. Flatscher (mobil/e)
>
> Am 28.01.2019 um 21:15 schrieb 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, 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 for a command handler that supports
>> redirection.
>>
>> How would the "handler" become able to support the new
>> "REDIRECTING_COMMAND_ENVIRONMENT" ability? How could the "handler"
>> determine whether redirection is in place and if so, what should it
>> do/support for each kind of redirection?
>>
>> ---rony
>>
>>
>> ___
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


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 creation time, I would like to 
support this new API in all of its facets.

—-rony


Rony G. Flatscher (mobil/e)

> Am 28.01.2019 um 21:15 schrieb 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, 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 for a command handler that supports 
>> redirection.
>> 
>> How would the "handler" become able to support the new 
>> "REDIRECTING_COMMAND_ENVIRONMENT" ability? How could the "handler" determine 
>> whether redirection is in place and if so, what should it do/support for 
>> each kind of redirection?
>> 
>> ---rony
>> 
>> 
>> 
>> ___
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


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, 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 for a command handler that supports
> redirection.
>
> How would the "handler" become able to support the new
> "REDIRECTING_COMMAND_ENVIRONMENT" ability? How could the "handler"
> determine whether redirection is in place and if so, what should it
> do/support for each kind of redirection?
>
> ---rony
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[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 for a command handler that supports 
redirection.

How would the "handler" become able to support the new 
"REDIRECTING_COMMAND_ENVIRONMENT" ability?
How could the "handler" determine whether redirection is in place and if so, 
what should it
do/support for each kind of redirection?

---rony


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel