Page 1 of 3
EnableExplicit on by default.
Posted: Mon May 25, 2009 2:48 am
by Rescator
Any chance to make EnableExplicit on by default?
Those who wish not to have it on could get a DisableExplicit or a flag in the IDE options.
Reason for this is that I always end up having to put EnableExplicit in my code anyway

It would also reduce the number of false bugreports.

Posted: Mon May 25, 2009 3:04 am
by freak
Not everybody likes EnableExplicit

Posted: Mon May 25, 2009 3:17 am
by netmaestro
Save me from EnableExplicit!

Posted: Mon May 25, 2009 6:21 am
by Prod
Totally love it, make it an option in Preferences.
Posted: Mon May 25, 2009 8:17 am
by pdwyer
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
Posted: Mon May 25, 2009 10:46 am
by PB
No need for an option, just type it yourself, or have a blank source file with
it at the top for creating new sources. :roll:
Posted: Mon May 25, 2009 11:03 am
by DoubleDutch
I prefer it off.
Posted: Mon May 25, 2009 11:14 am
by Trond
Prod wrote:Totally love it, make it an option in Preferences.
That would break code sharing.
Posted: Mon May 25, 2009 11:57 am
by PB
It wouldn't break code sharing, because you can use Define without it.

Posted: Mon May 25, 2009 1:24 pm
by Trond
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.
Posted: Mon May 25, 2009 1:28 pm
by srod
I wouldn't dare code without the help of enableexplicit! It's a must with complex projects inmo.

Posted: Mon May 25, 2009 1:36 pm
by ts-soft
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
Posted: Mon May 25, 2009 1:50 pm
by Kaeru Gaman
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.
Posted: Mon May 25, 2009 1:59 pm
by ts-soft
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

Posted: Mon May 25, 2009 2:41 pm
by Mistrel
I use it for large projects but I prefer it off for testing/fun/small apps. It's not absolutely necessary for everything I write.
-1 for this.