On 17 Jan 2002, at 10:49, Martin G C Davies wrote:
[...]
The reason I use external like this is because my Pascal program (yep, a rather large 250,000 lines in 150 modules) is structured very much like a C program so every module has a "template" (as in "include" file) that advertises the "public" typedefs, variables and procedures provided by the module. So, in fact, I really have 2 sources and an include:-
regabs.template
type regtype = packed -32768..32767 ;
var curpseudoreg : regtype ; external ;
procedure initregcons ; external ;
regabs.pas
module regabs ;
#include "regabs.template"
Two things: first, why not use a unit/module for "regabs.template" instead of an include file?; second (question for Frank and Peter) - isn't "#include" deprecated or am I wrong in thinking this?
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Author of Chief's Installer Pro for Win32 Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/