[OpenSCAD] Module reuse?
marius at kintel.net
Thu Oct 20 15:34:02 EDT 2016
> On Oct 20, 2016, at 15:06, nop head <nop.head at gmail.com> wrote:
> Included files see the symbols of the file they are included in, so if they are included into more than one they can produce module and functions that behave differently. Won't caching them break that?
No - the parsing itself isn’t context sensitive.
Defining behavior isn’t the job of the parser, that’s done in a separate step; when evaluating the AST into a CSG tree. This step is a bit harder to cache due to the existence of dynamically bound symbols, like $fn.
More information about the Discuss