It was definitely not the intent that the forward instruction would
allow you to do TCE.  The context of the forward instruction is still
taking up C stack space even though the activation for the current
context has been removed from the ooRexx call stack.

Rick

On Sun, Feb 20, 2011 at 3:11 PM, Jean-Louis Faucher
<[email protected]> wrote:
> Hi
>
> After reading this sentence in the doc of 'forward' :
> "If you do not specify the CONTINUE option, the language processor
> immediately exits the current
> method before forwarding the message"
>
> I expected to benefit of a so-called "tail call elimination", but that's not
> the case... I get a stack overflow.
> So, no way for TCE ?
>
> --------------------------
> .test~loop
>
> ::class test
> ::method loop class
>     use strict arg value = 0
>     say value
>     forward array (value + 1)
> --------------------------
>
>
> Regards
> Jean-Louis
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to