|
Post by ptitjoz on Apr 22, 2023 19:21:48 GMT 1
Hello
My program variable_y1.bac
y1=123 PRINT y1
variable_y1.bac:1:6: error: 'y1' redeclared as different kind of symbol variable_y1.bac.log
variable_y1.bac:1:6: error: 'y1' redeclared as different kind of symbol 1 | y1=123 | ^ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from variable_y1.bac.generic.h:3, from variable_y1.bac.h:2, from variable_y1.bac.c:2: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration of 'y1' was here 221 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ make: *** [Makefile.bacon:6: variable_y1.bac.o] Error 1
It doesn't matter but I wanted to let you know (if it hasn't already been said) Regards
|
|
|
Post by alexfish on Apr 22, 2023 19:32:08 GMT 1
many times
other = y and some times x
depends where and when
but it will happen one day
also be aware of passing args in functions
sub foo(x,y)
end sub
sub blagh x = 1 end sub
BR Alex
|
|
|
Post by Pjot on Apr 23, 2023 7:01:28 GMT 1
Hi ptitjoz, The 'y1' is a predefined symbol in the Libc math library. See the man page here. It also is mentioned in the BaCon manual in Appendix C. BR Peter
|
|
|
Post by ptitjoz on Apr 23, 2023 7:44:39 GMT 1
Hi ptitjoz, The 'y1' is a predefined symbol in the Libc math library. See the man page here. It also is mentioned in the BaCon manual in Appendix C. BR Peter Good morning Thank you for your answer. I had not imagined that it was documented. I had thought of a reserved variable.
That's all explained now!
A more big thank-you.
Best regards
|
|