summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-01-13 08:06:43 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-01-13 08:06:43 (GMT)
commitaa2c40934df3fdefbb39338f7eef44e79c3c551e (patch)
treeb9160847863784dfe55e508ea2eab9da956df310 /generic/tclCompile.c
parentc3c6e803684022dcc788ddbfc4a59a6d0dfde102 (diff)
downloadtcl-aa2c40934df3fdefbb39338f7eef44e79c3c551e.zip
tcl-aa2c40934df3fdefbb39338f7eef44e79c3c551e.tar.gz
tcl-aa2c40934df3fdefbb39338f7eef44e79c3c551e.tar.bz2
extend [string is] to booleans
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index c01571f..39fa241 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -624,6 +624,9 @@ InstructionDesc const tclInstructionTable[] = {
{"numericType", 1, 0, 0, {OPERAND_NONE}},
/* Pushes the numeric type code of the word at the top of the stack.
* Stack: ... value => ... typeCode */
+ {"tryCvtToBoolean", 1, +1, 0, {OPERAND_NONE}},
+ /* Try converting stktop to boolean if possible. No errors.
+ * Stack: ... value => ... value isStrictBool */
{NULL, 0, 0, 0, {OPERAND_NONE}}
};