.
D 2016-07-12T19:24:27.497
J closedate 2457582.30865159
J closer dkf
J comment It'd\sbe\sgreat\sif\swe\scould\shave\svariables\sassociated\r\nwith\sa\sprocedure\s(specifically\swith\sa\sProc\sstructure\r\ninstance)\ssince\sthat\swould\smake\sit\smuch\seasier\sto\sdo\r\nthings\slike\saccumulator\sfunctions,\sunique\sid\r\ngenerators,\setc.\r\n\r\nFurther\sideas\son\ssyntax:\r\n\s\sproc\scmdName\s{formalArgs}\s{persistentVars}\sbody\r\nThe\ssyntax\sof\spersistentVars\swould\sbe\sa\slist\slike\r\nformalArgs.\s\sIf\sa\sdefault\sis\spresent\sfor\sa\spv,\sset\sthe\r\npv\sto\sthat\svalue\swhen\sthe\sprocedure\sis\screated.\s\r\nOtherwise\sthe\spv\sis\sinitially\snon-existant.\s\sNo\sspecial\r\nhandling\sof\s'args',\sof\scourse.\s\sAll\spvs\sto\sbe\r\nautomatically\spresent\sin\sthe\slocal\svar\senv\swhen\r\nexecuting\sthe\sbody,\sjust\slike\sformals.\s\sPVs\sare\snot\r\n(necessarily)\smodified\swhen\sthe\sprocedure\sexits.\s\sPVs\r\nare\sdeleted\swhen\sthe\sproc\sis\sdeleted.\r\n\r\nProbably\salso\sneed\s[info]\ssubcommand\sfor\sintrospection\r\non\sPVs.\s\s:^)
J icomment Coroutines\sgive\sus\sthe\scapability\sto\sdo\sthe\seffects\sfrom\sthis.
J login dkf
J mimetype text/x-fossil-wiki
J resolution Out\sof\sDate
J severity Minor
J status Closed
K 1011429fffffffffffffffffffffffffffffffff
U dkf
Z f02f7dd9f74474d4067646fb5f90ded4