Artifacts Associated With Ticket 2935659fffffffffffffffffffffffffffffffff
Ticket change [cfa9fc3e0f] (rid 113025) by dzach on 2010-01-20 15:20:52:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.6b1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dzach"
- subsystem initialized to: "35. TclOO Package"
- title initialized to:
info class forward returning error instead of empty list
- type initialized to: "RFE"
Ticket change [44a7d86beb] (rid 116745) by dzach on 2010-01-21 17:21:27:
- icomment:
Or, should there be another way to enumerate a class's 'forwards', without being punished with an error?
- login: "dzach"
- mimetype: "text/plain"
- username: "dzach"
- icomment:
Ticket change [1220a7d238] (rid 95262) by dkf on 2010-01-22 20:16:04:
- foundin changed to: "None"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "35. TclOO Package"
- username: "dkf"
Ticket change [92d334ced0] (rid 226545) by dkf on 2024-05-23 15:42:40:
- closedate changed to: "2460454.15463293"
- closer changed to: "dkf"
- 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.
- 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.
- login: "dkf"
- mimetype: "text/x-markdown"
- resolution changed to: "Invalid"
- severity changed to: "Minor"
- status changed to: "Closed"