{"id":7330,"date":"2022-12-20T19:37:43","date_gmt":"2022-12-20T22:37:43","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_recordandevalobj-man3\/"},"modified":"2022-12-20T19:37:43","modified_gmt":"2022-12-20T22:37:43","slug":"tcl_recordandevalobj-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_recordandevalobj-man3\/","title":{"rendered":"Tcl_RecordAndEvalObj (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_RecordAndEvalObj<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_RecordAndEvalObj \u2212 save command on history list before evaluating<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_RecordAndEvalObj<\/b>(<i>interp, cmdPtr, flags<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p style=\"margin-top: 1em\">Tcl_Interp <i>*interp<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">Tcl interpreter in which to evaluate command.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p>Tcl_Obj <i>*cmdPtr<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p>Points to a Tcl value containing a command (or sequence of commands) to execute.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p>int <i>flags<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p>An OR\u2019ed combination of flag bits. <b>TCL_NO_EVAL<\/b> means record the command but do not evaluate it. <b>TCL_EVAL_GLOBAL<\/b> means evaluate the command at global level instead of the current stack level.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:62%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_RecordAndEvalObj<\/b> is invoked to record a command as an event on the history list and then execute it using <b>Tcl_EvalObjEx<\/b> (or <b>Tcl_GlobalEvalObj<\/b> if the <b>TCL_EVAL_GLOBAL<\/b> bit is set in <i>flags<\/i>). It returns a completion code such as <b>TCL_OK<\/b> just like <b>Tcl_EvalObjEx<\/b>, as well as a result value containing additional information (a result value or error message) that can be retrieved using <b>Tcl_GetObjResult<\/b>. If you do not want the command recorded on the history list then you should invoke <b>Tcl_EvalObjEx<\/b> instead of <b>Tcl_RecordAndEvalObj<\/b>. Normally <b>Tcl_RecordAndEvalObj<\/b> is only called with top-level commands typed by the user, since the purpose of history is to allow the user to re-issue recently invoked commands. If the <i>flags<\/i> argument contains the <b>TCL_NO_EVAL<\/b> bit then the command is recorded without being evaluated.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_EvalObjEx, Tcl_GetObjResult<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">command, event, execute, history, interpreter, value, record<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_RecordAndEvalObj \u2212 save command on history list before evaluating <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3648],"class_list":["post-7330","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_recordandevalobj"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7330"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7330\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}