Page 1 of 1
All options via IDE as well as through code
Posted: Mon Apr 26, 2010 9:07 am
by blueznl
I don't know it this is even feasible, and I'm not even sure it is entirely necessary, but it just feels wrong
Some options can only be turned on / off through the IDE (for example the DirectX subsystem), whilst other options can only be switched through code (EnableExplicit).
Wouldn't it make more sense to be able to set them both ways? (Ah yes, I know there's always the issue of priority, well, I'd assume that the IDE would give default settings, which would then be overridden by statements in the code.)
I know this probably isn't that simple, but it would just make it look just a little tad more professional. My 2 cents etc. etc. etc.
(On a priority scale from 0 to 10 this one ranges a 1 I guess

even in my own opinion

)
Re: All options via IDE as well as through code
Posted: Mon Apr 26, 2010 11:06 am
by Josh
i would prefer, to make the setting EnableExplicit as an option in the compiler options. i never used DisableExplicit and for me, i don't see any circumstance to need this.
additionally i would like a setting, to forbid default types for untyped variables. on the one hand i have EnableExplicit to forbit variables without define, at the other hand i can avoid a part of this safety device with default variables. i know, to use default types is very popular, but you can produce bad aftermaths, maybe thousands of lines later.
Re: All options via IDE as well as through code
Posted: Mon Apr 26, 2010 2:05 pm
by freak
Options like the subsystem or unicode mode require a compiler restart to take effect. How would you do that from code?
Also, what would be the point of having two separate ways to configure the same thing? Which should be used if the settings contradict each other?
Re: All options via IDE as well as through code
Posted: Tue Apr 27, 2010 7:18 am
by blueznl
> (Ah yes, I know there's always the issue of priority, well, I'd assume that the IDE would
> give default settings, which would then be overridden by statements in the code.)
Like I said, I can imagine it would not be logical, easy, or whatever, but it just feels a bit funny that DirectX is a compiler option, whilst enable excplicit is a statement, don't you think so?
Re: All options via IDE as well as through code
Posted: Tue Apr 27, 2010 9:08 am
by Trond
Like I said, I can imagine it would not be logical, easy, or whatever, but it just feels a bit funny that DirectX is a compiler option, whilst enable excplicit is a statement, don't you think so?
The compiler options works for the entire exe file, the statement options can be turned on and off for portions of the code (EnableExplicit/DisableExplicit).
Re: All options via IDE as well as through code
Posted: Wed Apr 28, 2010 7:50 am
by blueznl
Ahhhhh! Okay, now that makes sense!
Re: All options via IDE as well as through code
Posted: Wed Apr 28, 2010 3:32 pm
by Rescator
Yeah! But I still want a Global Default option for EnableExplicit
The only times then that I'd use DisableExplicit wold be when I'm just testing and too lazy to to a Define,
actually that amounts to almost the same amount of work so even quick tests I'd do would have properly define variables, hmm nice... ;P
Re: All options via IDE as well as through code
Posted: Sat May 22, 2010 8:51 pm
by PureLeo
I guess it would drive Windows crazy if we made a program like this:
EnableDirectX
NowDisableIt
EnableAgain
ISaidDisable!
