Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 06857c01c9caa008366207ab702785c9172e2c17
Ticket: 2791586fffffffffffffffffffffffffffffffff
[tailcall next] weirdness
User & Date: dkf on 2009-05-14 08:38:42
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Something very odd is going on when you do [tailcall next]. Of course, it's an inherently odd thing to do anyway, but in that case it ought to error out in a sane way (similar to the way that [uplevel 1 next] is prohibited). This is not an issue for the standalone TclOO package.
    
    % oo::class create foo {method bar {} {puts barbar}}
    ::foo
    % foo create o
    ::o
    % oo::objdefine o method bar {} {puts 1;tailcall next;puts 2}
    % o bar
    1
    next may only be called from inside a method
    % oo::objdefine o method foo {} {puts A;my bar;puts B}
    % o foo
    A
    1
    no next method implementation
    % set errorInfo
    no next method implementation
        while executing
    "next"
        invoked from within
    "my bar"
        (object "::o" method "foo" line 1)
        invoked from within
    "o foo"
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dkf"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "[tailcall next] weirdness"
  12. type changed to: "Bug"