Skip to content
Tcl Source Code Artifact [04ce046a2f]
Login

Artifact [04ce046a2f]

Artifact 04ce046a2f4f7c2e57dcea4607978ae89badecb1:

Ticket change [04ce046a2f] - New ticket [1011429fffffffff|1011429fff] <i>Procedure-bound persistent vars</i>. by dkf on 2004-08-18 13:23:19.
D 2004-08-18T13:23:19
J assignee msofer
J cmimetype text/plain
J comment It'd\sbe\sgreat\sif\swe\scould\shave\svariables\sassociated\nwith\sa\sprocedure\s(specifically\swith\sa\sProc\sstructure\ninstance)\ssince\sthat\swould\smake\sit\smuch\seasier\sto\sdo\nthings\slike\saccumulator\sfunctions,\sunique\sid\ngenerators,\setc.\n\nFurther\sideas\son\ssyntax:\n\s\sproc\scmdName\s{formalArgs}\s{persistentVars}\sbody\nThe\ssyntax\sof\spersistentVars\swould\sbe\sa\slist\slike\nformalArgs.\s\sIf\sa\sdefault\sis\spresent\sfor\sa\spv,\sset\sthe\npv\sto\sthat\svalue\swhen\sthe\sprocedure\sis\screated.\s\nOtherwise\sthe\spv\sis\sinitially\snon-existant.\s\sNo\sspecial\nhandling\sof\s'args',\sof\scourse.\s\sAll\spvs\sto\sbe\nautomatically\spresent\sin\sthe\slocal\svar\senv\swhen\nexecuting\sthe\sbody,\sjust\slike\sformals.\s\sPVs\sare\snot\n(necessarily)\smodified\swhen\sthe\sprocedure\sexits.\s\sPVs\nare\sdeleted\swhen\sthe\sproc\sis\sdeleted.\n\nProbably\salso\sneed\s[info]\ssubcommand\sfor\sintrospection\non\sPVs.\s\s:^)
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter dkf
J subsystem 22.\s[proc]\sand\s[uplevel]
J title Procedure-bound\spersistent\svars
J type RFE
K 1011429fffffffffffffffffffffffffffffffff
U dkf
Z 500a9fb60eee4c352db641b0120ac7cf