[OpenSCAD] each - Assertion failed on flat list
nop.head at gmail.com
Sat Apr 28 03:34:55 EDT 2018
a = [each [for(i=) i]];
Rather than assert should it return undef or just return the scalar?
On 28 April 2018 at 00:28, Parkinbot <rudolf at parkinbot.com> wrote:
> @runsun in general the parser doesn't know what a for loop will return.
> it is not a syntax error
> E.g. this is correct:
> a = [each for(i=[1,2]) [i]];
> Sent from: http://forum.openscad.org/
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss