Skip to content
Tcl Source Code History Of Ticket 1574835fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1574835fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1574835fffffffffffffffffffffffffffffffff

  1. Ticket change [0886e655fd] (rid 89575) by dkf on 2006-10-10 21:35:17:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % namespace ensemble create -command bar -map {id
      {const foo}}
      ::bar
      % proc const val { return $val }
      % proc alias {object slot = command args} {
           set map [namespace ensemble configure $object -map]
           dict set map $slot [linsert $args 0 $command]
           namespace ensemble configure $object -map $map
       }
      % proc method {object name params body} {
           set params [linsert $params 0 self]
           alias $object $name = ::apply [list $params $body
      ::] $object
       }
      % method bar boo x {return "[expr {$x*$x}] - $self"}
      % bar ?
      unknown or ambiguous subcommand "?": must be boo, or id
      % bar boo
      wrong # args: should be "bar boo"
      
      That's a wrong error message, should be:
        wrong # args: should be "bar boo x"
      
      
    4. foundin initialized to: "obsolete: 8.5a5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "22. [proc] and [uplevel]"
    11. title initialized to: "wrong#args problem in [apply] guts"
    12. type initialized to: "Bug"
  2. Ticket change [3dd07af3f5] (rid 121161) by msofer on 2006-10-11 05:34:02:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Oohh ... nasty, the error messages for curried lambdas are
      not quite ok.
      
      % set lam [list {self x} {return "[expr {$x*$x}] - $self"}]
      {self x} {return "[expr {$x*$x}] - $self"}
      % apply $lam bar
      wrong # args: should be "apply {{self x} {return "[expr
      {$x*$x}] - $self"}} self x"
      % interp alias {} try {} apply $lam bar
      try
      % try
      wrong # args: should be "apply {{self x} {return "[expr
      {$x*$x}] - $self"}} self x"
      
      That should be instead:
      wrong # args: should be "try x"
      
      Or should it?
      % interp alias {} try2 {} boo bar
      try2
      % try2
      wrong # args: should be "boo self x"
      [Side note: should interp alias rewrite the error message
      ust like ensemble aliases? Probably ...]
      
      
      There is here (I think) some interplay between ::apply
      returning such a funny error message (with a two-word
      command name, plenty of spaces in there too) and the
      ensemble's rewriting rules.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [c5f9e2b5cd] (rid 121684) by msofer on 2006-10-11 05:35:30:

    1. priority changed to: "8"
  4. Ticket change [f1205302b3] (rid 109309) by msofer on 2006-10-12 08:39:11:

    1. icomment:
      
      
      File Added - 197791: 1574835.diff
      
      Logged In: YES 
      user_id=148712
      
      Attached a patch that fixes this particular issue, but
      raises some others. It uses ns-ensemble's machinery.
      
      New test failures:
      
      apply-4.1,2: Tcl_WrongNumArgs is quoting where it shouldn't. 
      
      ---- Result was:
      1 {wrong # args: should be "apply {{x {set x 1}}} x"}
      ---- Result should have been (exact matching):
      1 {wrong # args: should be "apply {x {set x 1}} x"}
      
      
      Apply-6.2,3: [info level] does not know about ensemble
      rewriting. I think it should.
      
          set lambda [list args {info level 0}]
          apply $lambda x y
      ---- Result was:
      {args {info level 0}} x y
      ---- Result should have been (exact matching):
      apply {args {info level 0}} x y
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Add attachment "1574835.diff" [1752a0a713] (rid 122470) by msofer on 2006-10-12 08:39:11.

  6. Ticket change [05973245a2] (rid 89090) by msofer on 2006-10-12 08:44:20:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      To illustrate that the problem is at least partially with
      [info level]:
      
      % proc foo {} {info level 0}
      % alias bar boo = foo
      % bar boo
      ::foo
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [5feb3f5dbd] (rid 115904) by dgp on 2006-10-12 21:03:35:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Looks like you're re-opening
      the issues from 217806,
      218638, 218015.
      
      The *really* important issue
      in those reports got corrected,
      but the incompat in [info level]
      data remained.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [83c8a9725e] (rid 117438) by msofer on 2006-10-15 10:03:44:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      See also [Bug 1577492] for a solution to the [info level]
      problem.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [dc50777502] (rid 114457) by msofer on 2006-10-24 05:53:52:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Patch in [Bug 1577492] has been committed, this patch should
      be adapted so that [interp alias] benefits too. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [6aadb8562c] (rid 128198) by msofer on 2006-10-24 07:37:15:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Fixed in HEAD, tests missing.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [d7e7ad76c4] (rid 107347) by msofer on 2006-10-24 07:37:16:

    1. resolution changed to: "Fixed"
  12. Ticket change [8f17fef016] (rid 120224) by msofer on 2006-10-25 06:13:09:

    1. closedate changed to: "2006-10-24T23:13:09"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Added apply-4.3-5
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "msofer"