SAY AND GET

HMG en Español

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: SAY AND GET

Post by esgici »

asharpham wrote: Thu Mar 29, 2018 8:05 am ... I wasn't expecting to only find it in the Clipper references I guess.
...
Hi Alan

Please don't worry; this is a common situation especially for beginners :arrow:

And beware to confusing relations and differences between Clipper, Harbour and HMG


Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
asharpham
Posts: 55
Joined: Sat Mar 24, 2018 2:48 pm
DBs Used: DBF

Re: SAY AND GET

Post by asharpham »

I've had a look at both the links above but I'm now revealing my limited knowledge of Clipper as well as HMG/Harbour. What is the difference between REQUEST & #Include?
PeteWG
Posts: 176
Joined: Sun Mar 21, 2010 5:45 pm

Re: SAY AND GET

Post by PeteWG »

asharpham wrote: Fri Apr 13, 2018 2:23 amWhat is the difference between REQUEST & #Include?
a 'REQUEST' is a statement directed to the linker that demands to link the requested modules
while an '#include' is a directive to the compiler (in fact to the pre-processor) that instructs him
to incorporate a source file exactly in place where the 'include' line is shown
and to use its contents either to resolve undefined symbols encountered during compilation process
or to compile it as is, like any other source code.

an other significant distinction between them two, is that the 'REQUESTed' modules are binary entities
(i.e. already compiled) consisting of core functions (or even UDFs) found in libraries,
while the 'included' modules are source-code files (plain text, usually) containing other directives
(defines etc) and/or pure source code lines.

regards,
Pete
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: SAY AND GET

Post by ROBROS »

PeteWG wrote: Fri Apr 13, 2018 3:37 pm
asharpham wrote: Fri Apr 13, 2018 2:23 amWhat is the difference between REQUEST & #Include?
a 'REQUEST' is a statement directed to the linker that demands to link the requested modules
while an '#include' is a directive to the compiler (in fact to the pre-processor) that instructs him
to incorporate a source file exactly in place where the 'include' line is shown
and to use its contents either to resolve undefined symbols encountered during compilation process
or to compile it as is, like any other source code.

an other significant distinction between them two, is that the 'REQUESTed' modules are binary entities
(i.e. already compiled) consisting of core functions (or even UDFs) found in libraries,
while the 'included' modules are source-code files (plain text, usually) containing other directives
(defines etc) and/or pure source code lines.

regards,
Pete
Well explained, Thx.
Robert
Post Reply