Page 2 of 3

Posted: Mon May 25, 2009 3:29 pm
by AND51
This would have been more interesting, if you had added a poll. :)

Personally, I always use EnableExplicit (+1 for this request),
unless I test small codes from the forum (-1 for this request).

±0

Posted: Tue May 26, 2009 5:51 pm
by akj
-1 to EnableExplicit always being the default.

I use EnableExplicit for virtually everything I code BUT making it the default creates one more hurdle to overcome by complete beginners to the language.

Traditionally one of the big features of Basic is that beginners can ignore all code housekeeping/declarations and still get simple programs to work. [The only major way in which this is not supported by PureBasic is that 1-D arrays (vectors) whose maximum subscript is 10 or less have to be DIMmed, but traditionally this did not need to be done.]
Making EnableExplicit the default would be another departure from this tenet of simplicity.

I agree that a default for Disable/Enable Explicit should be settable in the options/preferences provided:
1. In a brand new installation the option should initially default to DisableExplicit (for the reason mentioned above).
2. The default Disable/Enable Explicit should NOT be be one of the editor settings saved at [for example] the end of a source file. Otherwise the compiler could default to a Disable/Enable Explicit state that you would be unable to predict.

Posted: Tue May 26, 2009 8:24 pm
by luis
srod wrote:I wouldn't dare code without the help of enableexplicit! It's a must with complex projects inmo. :)
Same here.

To be honest I started to use PureBasic when the option has been added.

It was the only gigantic massive obstacle between our love. :roll:

Anyway, I find it ok as it is.

Default off, for relaxed programming of simple snippets to test 5 - 10 lines of code.

On by request, for real programming.

Posted: Tue May 26, 2009 8:34 pm
by rsts
I use it, but this seems like a lot of discussion for what amounts to (maybe) 1 line of code in the program.

Personally, I'd rather have them make changes that were slightly more important.

cheers

Posted: Tue May 26, 2009 8:47 pm
by ts-soft
A IDE Option for default setting is a good idea, i would use it. I never write
one line code :wink:

Posted: Tue May 26, 2009 10:01 pm
by Mistrel
ts-soft wrote:A IDE Option for default setting is a good idea, i would use it. I never write
one line code :wink:
But akj has a point:
akj wrote:The default Disable/Enable Explicit should NOT be be one of the editor settings saved at [for example] the end of a source file. Otherwise the compiler could default to a Disable/Enable Explicit state that you would be unable to predict.
However, if it were an IDE-only setting then I think it would be ok. Writing something using EnableExplicit won't break when someone uses it without. And if you've enabled it in your IDE and code won't compile then it should be expected that you know how to handle it.

Posted: Tue May 26, 2009 10:21 pm
by ts-soft
The Editor-Settings should only work if nothing set in the source.

Posted: Tue May 26, 2009 10:26 pm
by freak
If it you have no problem putting 'Define' before every single variable, why is it such a big deal to put a single 'EnableExplicit' in the source ? :mrgreen:

Posted: Tue May 26, 2009 10:34 pm
by ts-soft
I doesn't use any Define, i have only one word outside a Procedure :mrgreen:
Okay, some shared vars a declared

Posted: Wed May 27, 2009 12:21 pm
by PB
> If it you have no problem putting 'Define' before every single variable,
> why is it such a big deal to put a single 'EnableExplicit' in the source ? :mrgreen:

:lol: That's an awesome point! There's no comeback to that. :)

Posted: Wed May 27, 2009 12:45 pm
by Trond
freak wrote:If it you have no problem putting 'Define' before every single variable, why is it such a big deal to put a single 'EnableExplicit' in the source ? :mrgreen:
It's because they think EnableExplicit enables the porn and violence mode, and they don't want their bosses to see that. It's more discreet if the option is hidden in the preferences window.

Posted: Wed May 27, 2009 6:11 pm
by SCRJ
LOL @Trond :lol:

Would be nice to use EnableExplicit by default (+1),
but it's not necessary (-1), so

+0^^

Posted: Fri May 29, 2009 7:10 am
by Poshu
Would be nice since more PB user would use it (and, common, enableexplicit is a MUST). +1

Posted: Fri May 29, 2009 10:55 am
by Kale
EnableExplicit is essential for any serious PB program you write.

Posted: Fri May 29, 2009 11:33 am
by PB
> EnableExplicit is essential for any serious PB program you write

Depends on your skill level and how you name your variables. ;)