SAY AND GET

HMG en Español

Moderator: Rathinagiri

User avatar
esgici
Posts: 4457
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 336 times
Been thanked: 103 times
Contact:

Re: SAY AND GET

Post by esgici » Thu Mar 29, 2018 9:03 am

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
Has thanked: 14 times

Post by asharpham » Fri Apr 13, 2018 2:23 am

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?

User avatar
PeteWG
Posts: 123
Joined: Sun Mar 21, 2010 5:45 pm
Has thanked: 4 times
Been thanked: 34 times

Post by PeteWG » Fri Apr 13, 2018 3:37 pm

asharpham wrote:
Fri Apr 13, 2018 2:23 am
What 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: 132
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Has thanked: 45 times
Been thanked: 11 times

Post by ROBROS » Fri Apr 13, 2018 6:31 pm

PeteWG wrote:
Fri Apr 13, 2018 3:37 pm
asharpham wrote:
Fri Apr 13, 2018 2:23 am
What 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