Talk:OpenSCAD User Manual/Include Statement

it seems that openscad gets out of memory when I include the same file from different locations or when files recursively include each other...

i.e. I "include <../test.scad>" from one scad-file and from another scad-file (running in the same rendering process) I do "include ". so the test.scad file gets included twice (at least twice).

Question: What is known about recursive includes? Does openscad try to handle it? 80.109.227.56 (discuss) 13:42, 1 February 2014 (UTC)

When to use "include" and when to use "use"
We should write a chapter/section about when include and use should be used. There seems to be some confusion outthere: *http://forum.openscad.org/Openscad-quot-include-lt-folder-file-scad-gt-quot-doesn-t-really-work-td651.html

I would say, that include is perfect for things like constants. Use is very nice, as is allows libraries to contain self-test functionality.

-- MichaelFrey (discuss • contribs) 10:24, 3 January 2017 (UTC)

"lib.scad" example is broken
The "however" part of the "lib.scad" example is not relevant, as the same effect can be reproduced without an include statement. See this bug report. I'd delete it here. Opinions?

-- Smurfix (discuss • contribs) 17:44, 18 January 2024 (UTC)