[OpenSCAD] each - Assertion failed on flat list

Parkinbot rudolf at parkinbot.com
Sun Apr 29 09:25:48 EDT 2018

It is a question of semantics. 

The avoid-runtime-errors-rule would be (in pseudo code): 

 if (isscalar(value)) value; 
 else flatten(value); 

and it would flatten down scalars and non-nested lists to the same level. Is
this desired?

Implementing the runtime-errors-rule would be more strict: 

assert(!isscalar(value)) flatten(value);


Sent from: http://forum.openscad.org/

More information about the Discuss mailing list