People who use my library are starting to complain it generates lots of
warnings about variables beginning with digits being deprecated. I thought
it was just those that looked like hex constants?
I have made extensive use of variables starting with digits for parts that
have part numbers beginning with digits.
On 4/30/2025 11:30 AM, nop head via Discuss wrote:
People who use my library are starting to complain it generates lots
of warnings about variables beginning with digits being deprecated. I
thought it was just those that looked like hex constants?
Ones that look like hex constants simply won't work because they are hex
constants.
Other identifiers starting with digits work but warn that they are
deprecated.
Why? If they don't cause a problem?
On Wed, 30 Apr 2025 at 19:55, Jordan Brown openscad@jordan.maileater.net
wrote:
On 4/30/2025 11:30 AM, nop head via Discuss wrote:
People who use my library are starting to complain it generates lots of
warnings about variables beginning with digits being deprecated. I thought
it was just those that looked like hex constants?
Ones that look like hex constants simply won't work because they are hex
constants.
Other identifiers starting with digits work but warn that they are
deprecated.
On 4/30/2025 11:55 AM, Jordan Brown via Discuss wrote:
On 4/30/2025 11:30 AM, nop head via Discuss wrote:
People who use my library are starting to complain it generates lots
of warnings about variables beginning with digits being deprecated. I
thought it was just those that looked like hex constants?
Ones that look like hex constants simply won't work because they are
hex constants.
Other identifiers starting with digits work but warn that they are
deprecated.
This is the very first bullet in my March 16 message announcing the
bitwise arithmetic feature:
I can't think of any other languages that do many things the way OpenSCAD
does but I don't think that is a reason for deprecating them especially
when people have been using them for nearly a decade.
On Wed, 30 Apr 2025 at 20:00, Jordan Brown via Discuss <
discuss@lists.openscad.org> wrote:
On 4/30/2025 11:55 AM, Jordan Brown via Discuss wrote:
On 4/30/2025 11:30 AM, nop head via Discuss wrote:
People who use my library are starting to complain it generates lots of
warnings about variables beginning with digits being deprecated. I thought
it was just those that looked like hex constants?
Ones that look like hex constants simply won't work because they are hex
constants.
Other identifiers starting with digits work but warn that they are
deprecated.
This is the very first bullet in my March 16 message announcing the
bitwise arithmetic feature:
- Historically, OpenSCAD allowed identifiers (variable names, module
names, et cetera) that start with digits. (I can't think of any other
language that allows this.) These are now deprecated and will yield a
warning - except for ones starting with 0x and a hex digit; they will be
interpreted as hexadecimal constants.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org