Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cfa9fc3e0f114347a26a5d2702877c7c68203eec
Ticket: 2935659fffffffffffffffffffffffffffffffff
info class forward returning error instead of empty list
User & Date: dzach on 2010-01-20 15:20:52
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [info class forward className methodName] returns an error "prefix argument list not available for this kind of method" when it is used on a methodName that has no forward defined for it.
    
    The documentation states:
    "info class forward class method
    This subcommand returns the argument list for the method forwarding called method that is set on the class called class. "
    
    So, one would expect to get an empty list if there is no forward defined for a class, since there is no other way of introspecting a class method for any forwards.
    The error given cannot be remedied by the programmer, since there is nothing one can do but use an unecessary [catch] to avoid it. Not having a forward is not an error for a method.
    
    An empty list would convey the same meaning with the error message, i.e. the unavailability of an argument list, but in a non-exceptional manner.
    
  4. foundin changed to: "obsolete: 8.6b1"
  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: "dzach"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to:
    info class forward returning error instead of empty list
    
  12. type changed to: "RFE"