[OpenSCAD] Missing operators
Giles Bathgate
giles.bathgate at gmail.com
Mon Sep 13 15:00:10 CEST 2010
On Mon, 2010-09-13 at 08:33 -0400, M.Rule wrote:
> yeah but that form of assignment is like the "let" operator.
One way of interpreting the requirement is to have other operators in
the assign statement e.g:
assign(j+=3)
{
}
Another way would be to have REAL variables e.g:
module main()
{
j=3;
echo(j);
j=4;
echo(j);
}
I would have expected the above script to output:
ECHO: 3
ECHO: 4
Currently the output is
ECHO: 4
ECHO: 4
That seems pretty confusing to me, and apparently to others.
Finally there would be a full compliment of operators that could be
used to change those variables.
Regards
Giles
More information about the OpenSCAD
mailing list