[OpenSCAD] module as an argument in a module?

nop head nop.head at gmail.com
Wed Oct 19 13:32:06 EDT 2016


No not currently, but you can do this instead:

module doit() { children(); }

module a() { something }
module b() { something else }

doit() a();
doit() b();



On 19 October 2016 at 18:25, Jerry Davis <jdawgaz at gmail.com> wrote:

> Is there a way to do this?
>
> module doit(x) { x() }
>
> module a() { something }
> module b() { something else }
>
> doit(a());
> doit(b());
>
> --
> Extra Ham Operator: K7AZJ
> Registered Linux User: 275424
> Raspberry Pi and Openscad developer
>
>
> *The most exciting phrase to hear in science - the one that heralds new
> discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov
>
> _______________________________________________
> 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/20161019/b7a5d846/attachment-0002.html>


More information about the Discuss mailing list