Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 21b3218535db4e833ea08d8d20fc33b4f5042414
Ticket: 2791586fffffffffffffffffffffffffffffffff
[tailcall next] weirdness
User & Date: dkf on 2009-06-08 20:57:42
Changes

  1. icomment:
    within constructors, things can get odd but are at least logical...
    
    % oo::class create foo {constructor {} {puts foo:con};method foo {} {puts foo:foo}}
    ::foo
    % oo::class create bar {superclass foo; constructor {} {puts a;tailcall next;puts b};method foo {} {puts c;tailcall next;puts d}}
    ::bar
    % oo::class create boo {superclass bar; constructor {} {puts p;next;puts q}}
    ::boo
    % bar create 2
    a
    next may only be called from inside a method
    % boo create 3
    p
    a
    a
    a
    a
    a
    a
    a
    [ad infinitum]
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"