Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 705bba3ab492c7ace459ec1ae938d9719ffbf043b5c080554ce06e75f80b2f1e
Ticket: 0de6c1d79cfba2ea1b21a6732cd9a6e1e1201563
[child invokehidden info frame] dereferences NULL
User & Date: apnadkarni on 2024-07-02 13:39:12
Changes

  1. closedate changed to: "2460494.06889861"
  2. icomment:
    @sebres - I do not agree with your [e40407c5e8] commit to raise an error instead of returning "type=precompiled" as better for consistency. Raising an error implies the caller has passed some invalid value. That is not the case here. The fault lies in the implementation, not the caller, in not having frame information available. So it seems more reasonable to return something that says "frame information not available" as opposed to something that tells the caller they made an error. It's misleading. 
    
    Moreover, with the above commit
    
    ```
    % child invokehidden info frame
    1
    % child invokehidden info frame 0
    bad level "0"
    % child invokehidden info frame 1
    bad level "1"
    ```
    
    does not seem consistent at all. info frame returns a level but then you try to get information and it says bad level.
    
    The dummied up use of "precompiled" as stated in comments is really in place of "framinfonotavailable" because the former also has no frame info available. Adding another type would require a TIP.
    
    This is something I am not going to argue further as it is not that important to me. But if you change your mind, I'd prefer not to raise an error.
    
  3. login: "apnadkarni"
  4. mimetype: "text/x-markdown"