Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9c57adb82a0216637d8e78989e37dbc3453517aa0a14f1bcdc9ae883819b22b
Ticket: 91b3a5bb14e6e8ae1d1c5349af12e08879ea152d
msgcat with oo: error "self may only be called from inside a method"
User & Date: dkf on 2024-07-16 13:23:05
Changes

  1. icomment:
    I've made `$obj eval self` work. Though it won't necessarily help much in this specific case, it does mean that `${ns}::my eval self` will produce something sensible (I've done this by extending availability of the call context into the stack frame pushed, something I probably should have thought of doing years ago).
    
    I still recommend resolving namespaces early, especially as there's no practical fix for inside `oo::define` contexts; you shouldn't be doing delayed callbacks into them (the concept makes no sense).
    
  2. login: "dkf"
  3. mimetype: "text/x-markdown"