discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Bool to int conversions

NH
nop head
Mon, Nov 16, 2020 10:52 AM

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?

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?
TP
Torsten Paul
Mon, Nov 16, 2020 11:53 AM

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.

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.
NH
nop head
Mon, Nov 16, 2020 9:32 PM

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 Torsten.Paul@gmx.de 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <Torsten.Paul@gmx.de> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >