Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b932d027eba4851f54a94be44c964bb40f8a1859
Ticket: 0f42ff78717afacc72710ec0c79aa71a48abb5f3
[tailcall] punches through [next]
User & Date: anonymous on 2015-04-08 14:29:47
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    This might smell a bit similar to [d87cb1820]?
    
    Replacing the [next] calls with [set next next; $next] removes the error.
    
    dgp identified [4492d3b64521] as the checkin which identified this
    behaviour with bytecoded [next].
    
        oo::class create Foo {
            method five {} {
                tailcall expr 5
            }
        }
        oo::class create Unfoo {
            superclass Foo
            method five {} {
                return -[next]
            }
        }
        Unfoo create fu
        puts "[fu five] should be -5?"
        # 8.6.2..trunk:  5 should be -5?
        # 8.6.1:         -5 should be -5?
    
    For added hilarity:
    
        oo::class create Foo {
            method five {} {
                tailcall puts 2
            }
        }
        oo::class create Unfoo {
            superclass Foo
            method five {} {
                puts 1
                next
                puts 3
            }
        }
        Unfoo create fu
        fu five
        # 1
        # 3
        # 2
    
  5. foundin changed to: "8.6.2 and later"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "cb02a4a25e8da92f2790bc307bf01ef24ce6053e"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "60. NRE and coroutines"
  15. title changed to: "[tailcall] punches through [next]"
  16. type changed to: "Bug"