Prod wrote:Totally love it, make it an option in Preferences.
+1
That way there is no impact on others but people can still make it their default
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
What I mean is that if you copy some code from the forum, it may not compile because it assumed enableexplicit off. Obviously you can add defines to the code, but its best if it works straight away. The people who don't use enableexplicit may not bother to add defines for someone else.
Code from other without declared variables comes never in any of my
programs. I add this by myself or ignore the code. To many work if i have
on error. Value of my variables overwritten from an include, horrible.
Code without declared variables (EnableExplicit) is useless for other
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Trond wrote:What I mean is that if you copy some code from the forum, it may not compile because it assumed enableexplicit off. Obviously you can add defines to the code, but its best if it works straight away. The people who don't use enableexplicit may not bother to add defines for someone else.
and what?
if it is mocked because I have Explicit default on, I change the compileroption to see it running, or quickly add a "DisableExplicit" to the top of the code...
@topic
I almost always use EnableExplicit.
... but I don't care if it was default or not.
it's just [e] [n] [down] [down] [enter] = 5 keystrokes to put it into the code.
The problem is not EnableExplicit, the problem are the not declared variables.
I can ignore this Keyword, but i can't ignore variables declared on the fly,
this give unforeseeable results included in other sources.
But for your own code only for yourself, you can ignore this feature and
have more fun on error trapping
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.