Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4a95ed4dcd3b52cfddfb16e00e2b05f0916bb1f
Ticket: 1556802fffffffffffffffffffffffffffffffff
[TIP#274] right associativity for ** operator
User & Date: dgp on 2006-09-12 03:18:39
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    David Smith has observed on
    the tcl-core mailing list that
    left associativity of the **
    operator proposed by TIP 123
    and implemented in current
    devlopment sources of Tcl
    is at odds with several other
    languages and computing 
    environments.
    
    Attached is a patch that changes
    ** to right associativity.  Here
    it is in action:
    
    % expr 2**3**4
    2417851639229258349412352
    
    I note that there are zero tests
    in the test suite checking the
    associativity of **, which I take
    as evidence that the original
    left-associative implementation choice
    wasn't a feature of great importance.
    
    
    
  4. foundin changed to: "None"
  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: "dgp"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "right associativity for ** operator"
  12. type changed to: "Patch"