[OpenSCAD] Unaccountable warning

Ronaldo Persiano rcmpersiano at gmail.com
Fri May 10 14:08:38 EDT 2019


Running:

function foo() =
  [for( i = 0;
        i < 1;
        assert(i<1),
        i = i+1 ) i];

echo(foo());


I got:

Compiling design (CSG Tree generation)...

WARNING: Assignment without variable name undef, in file
OpenSCAD-2019.01-RC4, line 2

ECHO: [0]


Line 2 is the line of the "for". Without the assert(), no message is
issued.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190510/d8465f6f/attachment.html>


More information about the Discuss mailing list