Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-07-12
09:20 • Closed ticket [1991477fff]: documentation of return is misleading plus 6 o... artifact: 697d2cf508 user: sf-robot
2008-06-28
02:25 • Pending ticket [1991477fff]. artifact: 945a5f99f9 user: dgp
2008-06-12
17:16 • Ticket [1991477fff]: 1 change artifact: 264a8b71fd user: dkf
01:55 • New ticket [1991477fff]. artifact: 40620eeb71 user: nobody

documentation of [return] is misleading

Closed1991477fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-06-12 01:55:28
Regarding the -code option to [return], the manual states:  "return (2)   The return code of the procedure is 2  (TCL_RETURN).   The procedure  command behaves in its calling context as if it were the command return (with no arguments)."

This would imply that no *value* argument could be supplied to the [return -code return] form to be returned from the procedure command's caller.

It would be more clear to specify more precisely which arguments would be present in the hypothetical return in the parent.

Colin.
dkf Ticket [1991477fff]: 1 change [History diff]2008-06-12 17:16:16
dgpplain2008-06-28 02:25:11
Logged In: YES 
user_id=80530
Originator: NO


If we simply removed "(with no arguments)", would that
solve the problem?
sf-robotplain2008-07-12 09:20:21
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.