Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1ad422f4abf7935a5d25ae99cca94bad2ee94fa9cc7197c83120115b07fcd717
Ticket: af0e43c96ee61edeea3ec666533316fb05ec9b2f
some tailcall operations evade recursion limit checks
User & Date: sebres on 2025-03-20 13:47:48
Changes

  1. closedate changed to: "2460755.07486266"
  2. closer changed to: "sebres"
  3. icomment:
    Closed for no activity...<br/>
    Please reopen, Don, if you have some objections.<br/>
    However one could consider this rather as an RFE, and implement it either as:
    <code>interp tailcalllimit</code> or <code>interp limit {} tailcall ?value?</code>
    
    Just it will be hardly possible, IMHO, because in opposition to recursion, it doesn't necessarily have a nesting and/or start and end, or rather it is almost impossible to detect such.<br/>
    Furthermore how one shall consider single tailcall used instead of return to uplevel-ed command, quasi to yield it to upper frame? Shall that be counted also (together with other tailcalls)?<br>And if we'd have some cyclic proceedings above?
    Note that it is not always possible to detect recursion and a simple rule "tailcall to itself" doesn't always working, because it needs to consider nesting "loops" (e. g. cross tailcall to some parent proc).
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"
  6. resolution changed to: "Postponed"
  7. status changed to: "Closed"