Re: having difficulty getting the unit to use an include file




Ante Smolcic wrote:
> In article <df0efc$nh5$1@xxxxxxxxxxxxxxxxxx>, pr@xxxxxxxxx says...
> >
> > "Adam Sandler" <corn29@xxxxxxxxxx> wrote in message
> > news:1125351705.989233.5850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > > Hello,
> > >
> > > I've searched this group for info about include files but mostly found
> > > debate on why someone would want to use them. I see value in include
> > > files as code templates and was wondering if anyone could show me where
> > > I'm going wrong.
> >
> > I may not be correct but changes made to include files
> > do not result in an automatic recompilation of a project.
> > Just think of the nice bugs you can create by this.
>
> IIRC, if you change your include files' extensions to "pas" it will
> recompile them. Am I right?

Not exactly... you can give any extension to an include file. If you
leave you leave the file extension off the compiler assumes *.pas.
However, if one explicitly supplies the file name with the include
compiler directive then anything can be used.


> --
> Out... for... a... walk... bitch.

How rude!

.