[OpenSCAD] sumUp() to Replace Difference() (in most cases)

Ronaldo Persiano rcmpersiano at gmail.com
Fri Oct 7 15:45:38 EDT 2016


2016-10-07 12:19 GMT-03:00 nop head <nop.head at gmail.com>:

> >Surprising recoding, nophead. The for() statement is used as a let() !
>
> It is a bodge because let() isn't accepted at that position, assign is
> deprecated in favour of assignment in braces but braces don't work if they
> are not the child of something like for or if.
>

It is a strange construction because for() is not used over a list but a
simple element. Regular modules and functions accept variables not declared
in their definition as argument (like $fn in cylinder()). Although
children() seems to be syntactically a module, it doesn't accept the
construction children($beforeRemoving=true) or even children(
[0:$children-1],$beforeRemoving=true) what would simplify the code a bit
more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20161007/d7dffdec/attachment-0002.html>


More information about the Discuss mailing list