[futurebasic] Re: [FB] New Project: Rntm Appearance.incl

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Wed, 20 Jan 2010 12:27:47 -0700
On Jan 20, 2010, at 9:39 AM, Emmett wrote:

> The little starter program does not have:
> include "rntm appearance.incl"
> Why is that?

Because the FB runtime is smart and includes rntm appearance.incl  
whether it is specified or not. This automatic behavior is specific to  
this include. Other includes would have to be specified either in an  
include statement or in the project window ( but not both ). Including  
the runtime costs little and is mostly required by a basic GUI program  
( console programs are another story ). Moreover, the compiler can  
strip unused code. Obviously, specifying only what is needed is best.


>
> The little starter program works just the same "with" or "without"  
> the include "rntm appearance.incl" line.
> Why is that?

See above.

As noted in my introduction PDF on the project manager(PM) ( see  
"resources" group ), an "include" in the source code is mostly the  
same as putting it in the PM. If you do one, the other is not  
necessary. Personally, I like to specify everything in the PM so it is  
visible. Includes in source files are less visible.

Most of the standalone demos ( both examples folder but expecially  
posts on the list ) will use the include statement in the source  
because posting projects to the list is not as simple as posting text  
of source code.


Brian S