[OpenSCAD] Unaccountable warning

Ronaldo Persiano rcmpersiano at gmail.com
Fri May 10 15:57:41 EDT 2019


The message is correct. It's caused by the "," after the assert().
>
> Moving the assert into the assignment of i it should work without
> warning.
>
>      function foo() =
>        [for( i = 0;
>              i < 1;
>              i = assert(i<1) i+1 ) i];
>

But, the following works without any warning:

function foo2() =
  let( i = 0,
       assert(i<1),
       j = 1 )
  j;


What that warning means?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190510/d755701a/attachment.html>


More information about the Discuss mailing list