obiscad icon indicating copy to clipboard operation
obiscad copied to clipboard

Libraries contain top level objects

Open cun83 opened this issue 12 years ago • 2 comments

The libraries contain top level objects. You have to clean the libraries before using them, making syncing them with Git a pain.

Libraries should not contain top level objects. There is an examples folder for examples.

cun83 avatar Mar 23 '13 10:03 cun83

You can include them using the keyword "use" instead of "include", in that case only the modules and functions are imported. But I support the principal point, there is an examples folder for that, and the library itself should not contain any top-level code.

rohieb avatar Apr 06 '13 19:04 rohieb

Oh... fail on my part there, thanks!

cun83 avatar Apr 09 '13 16:04 cun83