I have long sections of data in my code, building large arrays which, once
done, I don't want to see anymore. I noticed by coincidence that this works:
{//My big array
bigarray=[...];
}
Likewise, I can use it to hide large blocks of code, or to organize modules
that belong together (for example, a bunch of modules defining symbols).
The non-attached {} creates a folding region in the editor, yet, as far as I
can see, has no influence at all on the code execution. Most importantly,
they don't create their own variable scope.
This is very useful, but is this as intended, or is it a "useful bug which
may not work in the future"?
--
Sent from:
http://forum.openscad.org/_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org