|
2024-05-23
| ||
| 15:42 | • Closed ticket [2935659fff]: info class forward returning error instead of empty ... artifact: 92d334ced0 user: dkf | |
|
2010-01-22
| ||
| 20:16 | • Ticket [2935659fff]: 6 changes artifact: 1220a7d238 user: dkf | |
|
2010-01-21
| ||
| 17:21 | • Ticket [2935659fff]: 4 changes artifact: 44a7d86beb user: dzach | |
|
2010-01-20
| ||
| 15:20 | • New ticket [2935659fff]. artifact: cfa9fc3e0f user: dzach | |
info class forward returning error instead of empty list
Closed / Invalid2935659fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 3 years ago
Descriptionplain2010-01-20 15:20:52
[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.
dzachplain2010-01-21 17:21:27
Or, should there be another way to enumerate a class's 'forwards', without being punished with an error?
dkfplain2010-01-22 20:16:04
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.
dkfmarkdown2024-05-23 15:42:40
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.
Log in (anonymous is fine) to add a comment.