[OpenSCAD] Module reuse?

Marius Kintel marius at kintel.net
Thu Oct 20 14:42:22 EDT 2016

Related to this: I’m considering changing how files are included by parsing all included files separately, and merging the symbols into the namespace of the including file as a separate step. This will enable caching also of included files.

..at the expense of breaking backwards compatibility by requiring included files to contain fully parsable statements.


> On Oct 20, 2016, at 12:51, nop head <nop.head at gmail.com> wrote:
> Parsing does take significant time because at the moment all the vitamins are included, so they all get parsed for every assembly. I am designing a new machine so I will include only the constants and use all the modules and functions. This means splitting each vitamin file into two parts. For example screws,scad is a list of screw definitions, which are just named lists. A second file screw.scad will contain all the functions and modules related to screws and will be included in screws.scad. Hopefully that will be much faster and possibly fix the slowdown when automatic reload is turned on.

More information about the Discuss mailing list