Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Make yieldm argument optional.

Openc26b188f68141f6a88627a6d72df9bd3bdd5cb2aCreated 12 years agoUpdated 12 years ago
Descriptionplain2014-08-27 11:55:56
The yieldm proc proposed in the yieldto manual page is recommended as a version of yield that allows resumption with multiple arguments. However the value argument of yield is optional. It would make sense to do the same with yieldm. So the command would look like:

proc yieldm {{value ""}} {
    yieldto return -level 0 $value
}
Log in (anonymous is fine) to add a comment.