diff options
Diffstat (limited to 'src/texec/libtnsl.go')
-rw-r--r-- | src/texec/libtnsl.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go index 0f02f32..581d15e 100644 --- a/src/texec/libtnsl.go +++ b/src/texec/libtnsl.go @@ -117,11 +117,19 @@ func tnslFileEval(file, in TVariable, function string) TVariable { // Generic IO funcs func tprint(in TVariable) { - fmt.Print(in.Data) + if equateType(in.Type, tString) { + fmt.Print(datToString(in.Data)) + } else { + fmt.Print(in.Data) + } } func tprintln(in TVariable) { - fmt.Println(in.Data) + if equateType(in.Type, tString) { + fmt.Println(datToString(in.Data)) + } else { + fmt.Println(in.Data) + } } func datToString(dat interface{}) string { |