[OpenSCAD] module as an argument in a module?

Jerry Davis jdawgaz at gmail.com
Wed Oct 19 13:49:52 EDT 2016


ok. that works


--
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

On Wed, Oct 19, 2016 at 10:32 AM, nop head <nop.head at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/a35d0a97/attachment-0002.html>


More information about the Discuss mailing list