Skip to content
Tcl Source Code History Of Ticket 2935659fffffffff
Login

History Of Ticket 2935659fffffffff

Artifacts Associated With Ticket 2935659fffffffff

  1. Ticket change [cfa9fc3e0f] (rid 113025) by dzach on 2010-01-20 15:20:52:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.6b1"
    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: "dzach"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to:
      info class forward returning error instead of empty list
      
    12. type initialized to: "RFE"
  2. Ticket change [44a7d86beb] (rid 116745) by dzach on 2010-01-21 17:21:27:

    1. icomment:
      Or, should there be another way to enumerate a class's 'forwards', without being punished with an error?
      
      
    2. login: "dzach"
    3. mimetype: "text/plain"
    4. username: "dzach"
  3. Ticket change [1220a7d238] (rid 95262) by dkf on 2010-01-22 20:16:04:

    1. foundin changed to: "None"
    2. icomment:
      
      
      data_type - 360894
      
      Everything is as designed and documented, and there's consistency with [info class definition] which only applies to methods defined with 'method'.
      
      Whether or not it should be an error is a separate matter. Converting to FRQ.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. subsystem changed to: "35. TclOO Package"
    6. username: "dkf"
  4. Ticket change [92d334ced0] (rid 226545) by dkf on 2024-05-23 15:42:40:

    1. closedate changed to: "2460454.15463293"
    2. closer changed to: "dkf"
    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. icomment:
      You can do `info class methodtype` and `info object methodtype` to get a good guess going as to how to read what you've got. That was in TIP #381.
      
    5. login: "dkf"
    6. mimetype: "text/x-markdown"
    7. resolution changed to: "Invalid"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"