12th August 2013

Today, I found (Re-Discovered) bug in OpenSCAD language which is a bug from language perspective but a useful feature from the perspective of a user. It’s a useful bug which created a problem for me related to implementing the customizer.

a=12;
echo(a);
a=34;

This would give output 34 instead of 12

So, how its creating problem for me:

 
a=1; // [1:12]
a=4; //[1,2,3,4]

So, what should be the input widget created for following slider or Combo Box.
At present, we save location of only first assignment of a variable. So, It would create Slider Instead of combo Box.

Then, I worte code to correct this that parameters for last assignment should be taken but didn’t commited the code as discussion related to this is still going on.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s