Qbasicnews.com

Full Version: REQ: OPTION SUBSYSTEM CONSOLE|GUI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been looking at the source for FreeBASIC and was wondering if an extra use of the "OPTION" keyword could be added to direct the targeted ctx.subsystem to either gui or console from within the source code? Of course OPTION doesn't have to be the keword used, but it seems a likely candidate and it would not create a completely new keyword, just added functionality of an existing one. I have used other compilers that use $APPTYPE or other specialized keywords.

I can see where the subsystem is determined from the commnad line options. I can see where the subsystem is passed to the linker after the source has been compiled and assembled. It appears that with the DIM SHARED CTX, the subsystem could be adjusted within the parsed source file.

I don't know about others, but it would be helpful to be able to target the application type within the source. (In fact, one of my favorite things about pascal/delphi is the complete control over all compile/link options from within the source itself.)

Thanks.
'$GUI or '$CONSOLE would probably be the best way to do it. Metacommands rock. Big Grin