Skip to content
Tcl Source Code Artifact [28a5490a53]
Login

Artifact [28a5490a53]

Artifact 28a5490a536429f5acdbe4de9e5440189379853a:

Ticket change [28a5490a53] - Ticket [219376ffffffffff|219376ffff] <i>New Feature Request: Pass the results of the last command in</i> status still Open with 5 other changes by dkf on 2000-11-22 23:45:58.
D 2000-11-22T23:45:58
J foundin obsolete:\s8.4a3
J icomment Speaking\sas\san\sold\sfunctional\sprogrammer,\sit\swould\sbe\svery\snice\sif\sthe\s[if]\scommand\sreturned\sthe\sresult\sof\sthe\slast\scommand\sof\swhatever\sbody\sit\sends\sup\sexecuting.\nI'm\sless\ssure\sabout\sreturning\svalues\sfrom\s[for],\s[foreach]\sand\s[while]\ssince\sthe\scost\sof\sconstructing\sthe\snatural\sresults\sof\sthose\scommands\s(which\sis\sthe\slist\sof\sthe\sresults\sof\sthe\slast\scommand\sof\stheir\sbodies\sfrom\seach\sexecution)\sis\slikely\sto\sbe\svery\sexpensive\sto\scompute\sin\sterms\sof\smemory.\s\sReturning\sthe\svalue\sfrom\sthe\sfinal\sexecution\sof\sa\sloop\sbody\sdoesn't\sseem\svery\sintuitive\sto\sme...\nNot\sthat\sany\sof\sthis\sshould\sbe\staken\sas\sbeing\sagainst\sdefining\sa\sseparate\scommand\swith\sthe\ssemantics\sdescribed,\ssince\sthat\swould\sbe\san\s"opt-in"\sas\sopposed\sto\s"forced-upon";\si.e.\speople\swould\suse\sit\swhere\sit\smakes\ssense\saccording\sto\sthe\salgorithm\sbeing\simplemented,\sand\snot\sotherwise.\s\s(For\sexample,\sa\scollecting\s[foreach]\scommand\sis\smore\scommonly\sknown\sas\s[map]\sin\sthe\sfunctional-programming\scommunity.)\n
J login dkf
J mimetype text/plain
J username dkf
K 219376ffffffffffffffffffffffffffffffffff
U dkf
Z dd6d642884cc5773e75aeb141c15ac9c