[OpenSCAD] Extending OpenSCAD from assembler to C or Perlish language and adding standard library
revarbat at gmail.com
Tue Oct 1 14:22:30 EDT 2019
Actually, it might. Slightly awkward, but it should be abusable to allow more complex algorithms. Honestly I’d forgotten that syntax existed. Thanks.
> On Oct 1, 2019, at 12:02 AM, nop head <nop.head at gmail.com> wrote:
> Doesn't the current C like for(..;..;) syntax effectively allow a while loop and mutable variables in the loop?
>> On Tue, 1 Oct 2019 at 04:51, Doug Moen <doug at moens.org> wrote:
>>>>> 1. Mutable variables.
>>>> [...] It's not something very high at my personal wish-list at
>>>> this point [...]
>>> This is perhaps the most highly desired feature request I have. Though it's unclear to me how it would be handled in a function context, since `let()` only sets the value of a variable for the parts of a function subordinate to the `let()`. Also, mutable variables become much more useful with a `while()` conditional loop statement.
>> It would be possible to borrow the syntax that Curv uses for mutable variables. It would fit in to OpenSCAD with only minor changes. You can use assignment statements and while statements inside a function, or inside a list comprehension.
>> OpenSCAD mailing list
>> Discuss at lists.openscad.org
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss