forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't instantiate r-value ModuleReferences #5
Comments
One syntax which works is to wrap the expression in brackets ar = [ module cube(10)];
(ar[0])(); //
ar1 = [ module cube];
(ar1[0])(10); // showing args to instantiation Parser.y is modified to
|
kwikius
added a commit
that referenced
this issue
Oct 2, 2022
Fixed by 2a33ede |
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 1, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 12, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 12, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 12, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 13, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Nov 22, 2022
jordanbrown0
pushed a commit
to jordanbrown0/openscad
that referenced
this issue
Dec 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the workaround is to create an l-value ( e.g a name to assign the module_reference) and instantiate that as shown above.
Allowing instantiation of r-values will require mods to the parser
The text was updated successfully, but these errors were encountered: