[OpenSCAD] each - Assertion failed on flat list

nop head nop.head at gmail.com
Sat Apr 28 03:34:55 EDT 2018


Or this

a = [each [for(i=[1]) 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.
> Thus
> 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
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180428/cf9777f4/attachment.html>


More information about the Discuss mailing list