Skip to content
Tcl Source Code Artifact [92d334ced0]
Login

Artifact [92d334ced0]

Artifact 92d334ced07651b16c54990ef9186a08ddd1d00a2472df365b1c786d26fd39af:

Ticket change [92d334ced0] - Closed ticket [2935659fffffffff|2935659fff]: <i>info class forward returning error instead of empty list</i> plus 8 other changes by dkf on 2024-05-23 15:42:40.
D 2024-05-23T15:42:40.285
J closedate 2460454.15463293
J closer dkf
J comment [info\sclass\sforward\sclassName\smethodName]\sreturns\san\serror\s"prefix\sargument\slist\snot\savailable\sfor\sthis\skind\sof\smethod"\swhen\sit\sis\sused\son\sa\smethodName\sthat\shas\sno\sforward\sdefined\sfor\sit.\r\n\r\nThe\sdocumentation\sstates:\r\n"info\sclass\sforward\sclass\smethod\r\nThis\ssubcommand\sreturns\sthe\sargument\slist\sfor\sthe\smethod\sforwarding\scalled\smethod\sthat\sis\sset\son\sthe\sclass\scalled\sclass.\s"\r\n\r\nSo,\sone\swould\sexpect\sto\sget\san\sempty\slist\sif\sthere\sis\sno\sforward\sdefined\sfor\sa\sclass,\ssince\sthere\sis\sno\sother\sway\sof\sintrospecting\sa\sclass\smethod\sfor\sany\sforwards.\r\nThe\serror\sgiven\scannot\sbe\sremedied\sby\sthe\sprogrammer,\ssince\sthere\sis\snothing\sone\scan\sdo\sbut\suse\san\sunecessary\s[catch]\sto\savoid\sit.\sNot\shaving\sa\sforward\sis\snot\san\serror\sfor\sa\smethod.\r\n\r\nAn\sempty\slist\swould\sconvey\sthe\ssame\smeaning\swith\sthe\serror\smessage,\si.e.\sthe\sunavailability\sof\san\sargument\slist,\sbut\sin\sa\snon-exceptional\smanner.
J icomment You\scan\sdo\s`info\sclass\smethodtype`\sand\s`info\sobject\smethodtype`\sto\sget\sa\sgood\sguess\sgoing\sas\sto\show\sto\sread\swhat\syou've\sgot.\sThat\swas\sin\sTIP\s#381.
J login dkf
J mimetype text/x-markdown
J resolution Invalid
J severity Minor
J status Closed
K 2935659fffffffffffffffffffffffffffffffff
U dkf
Z feaa4d368618156aca97002589af45b1