Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.41k stars 142 forks source link

ExtOpenScad Let block of function definition gets wrong arguments #431

Closed acoth closed 1 year ago

acoth commented 2 years ago

Accessing function arguments normally works as expected, but within a let block, it gets the previous argument instead. Simple example: function foo(a,b,c) = let(output=b) [output,b]; echo(foo(1,2,3));

returns [1.0,2.0] instead of the expected [2.0,2.0]

lepsa commented 1 year ago

@julialongtin I think that this can be closed now.