discuss@lists.openscad.org

OpenSCAD general discussion

View all threads

Re: first class modules WIP

TP
Torsten Paul
Sun, Sep 4, 2022 6:20 PM

On 04.09.22 19:33, Andy Little via Discuss wrote:

I Have now managed to get some actual openscad output using
the first class feature into the CSG tree and am sure now
this would be a very useful feature.

Yes, that would be a great feature that's on the wishlist for
a long time. I just wished you would not ignore all the earlier
discussions and PRs that where pointed out multiple times. A
feature that big will only have a chance when working together.

ciao,
Torsten.

On 04.09.22 19:33, Andy Little via Discuss wrote: > I Have now managed to get some actual openscad output using > the first class feature into the CSG tree and am sure now > this would be a very useful feature. Yes, that would be a great feature that's on the wishlist for a long time. I just wished you would not ignore all the earlier discussions and PRs that where pointed out multiple times. A feature that big will only have a chance when working together. ciao, Torsten.
K
kwikius@yahoo.com
Mon, Sep 5, 2022 8:47 AM

See reply https://github.com/openscad/openscad/pull/3087#issuecomment-1236689850

In a nutshell module has the functionality you need already I think, but needs to be first class to access it.

I will download the object_literal fork and take a look over the next couple of days. I will also see if, on my first class modules WIP fork (https://github.com/kwikius/openscad/tree/WIP-first-class-module) I can enhance the

ob = module() {…};

with ob = module {…};

and

ob = {…};

See reply https://github.com/openscad/openscad/pull/3087#issuecomment-1236689850 In a nutshell module has the functionality you need already I think, but needs to be first class to access it. I will download the object_literal fork and take a look over the next couple of days. I will also see if, on my first class modules WIP fork (https://github.com/kwikius/openscad/tree/WIP-first-class-module) I can enhance the ob = module() {…}; with ob = module {…}; and ob = {…};
K
kwikius@yahoo.com
Mon, Sep 5, 2022 10:15 AM
done https://github.com/kwikius/openscad/blob/WIP-first-class-module/tests/data/scad/experimental/first_class_module/object_existing.scad