Bool to int conversions

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bool to int conversions

nophead
I found bools don't work as array indices and arguments to mirror but they also don't give any warning. Is this correct?

I now have to create bool2int() to get C like semantics.

Code gets ever bigger with new versions of OpenSCAD. Progress?

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Bool to int conversions

tp3
On 16.11.20 11:52, nop head wrote:
> I found bools don't work as array indices

And that worked when exactly? I'm getting undef in
2019.05 too, so it's not anything recent as far as
I can see.

ciao,
  Torsten.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Bool to int conversions

nophead
I don't know, perhaps I dreamt it! I thought originally OpenSCAD did the normal conversion of bool to int but had recently been turned into an error but perhaps I was mistaken.

On Mon, 16 Nov 2020 at 11:54, Torsten Paul <[hidden email]> wrote:
On 16.11.20 11:52, nop head wrote:
> I found bools don't work as array indices

And that worked when exactly? I'm getting undef in
2019.05 too, so it's not anything recent as far as
I can see.

ciao,
  Torsten.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org