|
2003-04-11
| ||
| 23:21 | • Closed ticket [461635ffff]: new info subcommand: formalargs plus 7 other c... artifact: 064e401f82 user: dgp | |
|
2003-03-21
| ||
| 12:05 | • Add attachment 461635.patch to ticket [461635ffff] artifact: a36df071c4 user: dgp | |
| 12:05 | • Ticket [461635ffff] new info subcommand: formalargs status still Open with... artifact: a4015c5b83 user: dgp | |
|
2003-03-20
| ||
| 06:33 | • Open ticket [461635ffff]. artifact: ab682df58c user: dgp | |
|
2002-08-31
| ||
| 01:27 | • Ticket [461635ffff]: 2 changes artifact: cec1467d12 user: glennjnn | |
| 01:27 | • Closed ticket [461635ffff]. artifact: b817771eda user: glennjnn | |
|
2001-09-17
| ||
| 17:33 | • Open ticket [461635ffff]. artifact: e17cff3069 user: dkf | |
| 17:18 | • Ticket [461635ffff]: 4 changes artifact: 4b51248cef user: nobody | |
| 16:33 | • Pending ticket [461635ffff]. artifact: 18bef06e05 user: dkf | |
|
2001-09-15
| ||
| 02:24 | • Ticket [461635ffff]: 4 changes artifact: 7d41da43b1 user: glennjnn | |
| 02:24 | • Add attachment info.test.diff to ticket [461635ffff] artifact: 96544df72a user: glennjnn | |
| 02:23 | • Ticket [461635ffff] new info subcommand: fullargs status still Open with 4... artifact: 5c8fdfa5d5 user: glennjnn | |
| 02:23 | • Add attachment info.n.diff to ticket [461635ffff] artifact: 8565e144d8 user: glennjnn | |
| 02:21 | • Ticket [461635ffff] new info subcommand: fullargs status still Open with 4... artifact: fa0fb667e9 user: glennjnn | |
| 02:21 | • Add attachment tclCmdIL.diff to ticket [461635ffff] artifact: 41d5c50eba user: glennjnn | |
|
2001-09-14
| ||
| 19:17 | • New ticket [461635ffff] new info subcommand: fullargs. artifact: 6f0b157e06 user: glennjnn | |
new [info] subcommand: formalargs
Closed / Rejected461635ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 24 years ago
Descriptionplain2001-09-14 19:17:08
[info args procname] does not return any default values.
One must resort to iterating over the results from [info args], calling [info default] for each one, and build up a list.
It would be more convenient to have an [info] subcommand in the core that accomplishes that feat.
I propose [info fullargs procname]:
proc t1 [list one [list two ""] args] {}
info fullargs t1 ;# ==> one {two {}} args
glennjnnplain2001-09-15 02:21:53
File Added - 10798: tclCmdIL.diff
glennjnnplain2001-09-15 02:23:28
File Added - 10799: info.n.diff
glennjnnplain2001-09-15 02:24:13
File Added - 10800: info.test.diff
dkfplain2001-09-17 16:33:10
Logged In: YES user_id=79902 This feature *requires* a TIP; I'm not too sure if I like the name 'fullargs' either... :^) Implementation looks technically OK though.
nobodyplain2001-09-17 17:18:01
Logged In: NO I might suggest 'info args -withdefaults'. If we only examine the option when there is a 4th argument, there are also no backwards compatibility issues with the unlikely possibility of a proc called '-withdefaults'. -- Vince.
dkfplain2001-09-17 17:33:00
Logged In: YES user_id=79902 Why do you think I said it needed a TIP? :^)
glennjnn Closed ticket [461635ffff].
[History diff]2002-08-31 01:27:48
glennjnn Ticket [461635ffff]: 2 changes
[History diff]2002-08-31 01:27:49
dgp Open ticket [461635ffff].
[History diff]2003-03-20 06:33:37
dgpplain2003-03-21 12:05:12
File Added - 45592: 461635.patch Logged In: YES user_id=80530 combined changes into one patch updated patch to HEAD corrected test numbering (tests should keep the same ID over Tcl history) Changed to [info formalargs] as last TIPped.
dgpplain2003-04-11 23:21:33
Logged In: YES user_id=80530 TIP 65 rejected.
Log in (anonymous is fine) to add a comment.
Attachments:
- 461635.patch [download] added by dgp on 2003-03-21 12:05:12. [details]
- info.test.diff [download] added by glennjnn on 2001-09-15 02:24:13. [details]
- info.n.diff [download] added by glennjnn on 2001-09-15 02:23:27. [details]
- tclCmdIL.diff [download] added by glennjnn on 2001-09-15 02:21:53. [details]