On 12.03.22 21:34, Adrian Mariano wrote:
How does listing the variables work if you pass an array of 1000 values?
Good question.
When driven to extremes, it currently crashes.
We have this test case in the test frame work:
rec();
module rec(a=1)
{
rec([a,10,10]);
}
I assume I have to reimplement the Vector to String Methode.
The tricky part is, that vectors can be nested.
Interestingly, this works:
rec();
module rec(a="A")
{
rec(concat(a, "A");
}
... but limiting the toString function makes sense eitherway.
With kind regards,
Michael Frey
On 13.03.22 07:27, Michael Frey wrote:
On 12.03.22 21:34, Adrian Mariano wrote:
How does listing the variables work if you pass an array of 1000 values?
Good question.
When driven to extremes, it currently crashes.
We have this test case in the test frame work:
rec();
module rec(a=1)
{
rec([a,10,10]);
}
I decide on using three dots. Example:
Compiling design (CSG Tree generation)...
ERROR: Recursion detected calling module 'rec' in file , line 3
TRACE: called by
'rec([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...])'
in file , line 5
TRACE: called by
'rec([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...])'
in file , line 5
TRACE: called by
'rec([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...])'
in file , line 5
TRACE: called by
'rec([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...])'
in file , line 5
TRACE: called by
'rec([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...],
...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...], ...])'
in file , line 5
Compiling design (CSG Products generation)...
Merge request:
https://github.com/openscad/openscad/pull/4173
with kind regards,
Michael Frey
With kind regards,
Michael Frey
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org