|
Post by ptitjoz on Feb 8, 2018 16:16:50 GMT 1
Hello everyone!
Is there a way to impose the declaration of variables? Example in javascript there is the directive "use strict"
Best regards
|
|
|
Post by Pjot on Feb 8, 2018 20:02:42 GMT 1
Hi ptitjoz, What you're looking for is known as "OPTION EXPLICIT" in some other BASIC versions (like in LibreOffice BASIC, or Visual Basic). Some Basic versions do not have such option, like ScriptBasic or Qbasic. And in BaCon, we do not have this option either. But it is something which can be added in a next release of BaCon, of course. Best regards Peter
|
|
|
Post by ptitjoz on Feb 8, 2018 23:33:09 GMT 1
Hello Peter Thank you for this response. I hope this option will be put in place soon because it would be a step forward. I think that would limit the risk of error. Thank you in advance and thank you for your work.
Best regards
|
|
|
Post by Pjot on Feb 9, 2018 20:35:29 GMT 1
Hi ptitjoz,
I'll put it on the TODO list for the next version.
BR Peter
|
|
|
Post by ptitjoz on Feb 11, 2018 15:05:42 GMT 1
Hi Peter Great !
|
|
|
Post by Pjot on Feb 25, 2018 18:45:33 GMT 1
Hi ptitjoz,
The OPTION EXPLICIT statement will be available in 3.7.2.
Best regards Peter
|
|
|
Post by ptitjoz on Feb 26, 2018 8:57:06 GMT 1
Hello Peter It's a good news Regards
|
|