On Tuesday, March 14, 2023 at 10:17:15 AM UTC-5, Shaun Kulesa wrote:
Alright you are correct about the division as it does that in C and Java, I must of gotten too familiar with python as If you do print(4/3) in python it will return 1.33.
Some of my other points are that using expr is silly enough, but the syntax is completely different to the Tcl syntax.
The functions such as pow use () and commas which is like other languages such as java and python, not Tcl.
It is a common mistake to assume that Tcl is like any other programming language. It is not. The language definition is more simplistic. Behavior(s) is(are) defined by the command(s), not by Tcl. This may sound strange, but once you see it, it will
become clear. Start by (re)reading the Tcl man page (
https://www.tcl-lang.org/man/tcl8.6/TclCmd/Tcl.htm). Note that there is no definition of an "expression". This is by design.
-Brian
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)