On Mon, 25 May 2009, Alexander S.Kresin wrote:

Hi,

> Viktor, it seems, you forgot to add the hbformac.c.
> BTW, what's bad in using #pragma BEGINDUMP ... #pragma ENDDUMP ?

There is no reason to hardcode that Harbour output has to be C only
code. We can add direct object file generation in the future and it
will not work with any code which uses #pragma BEGINDUMP/ENDDUMP
just like now it does not work with .hrb files and it will not work
with extended .hrb formats (.hrl/.hre) we plan to add. We can also
add .ASM output or generating code for other VMs.
To avoid possible problems and later code updating we decided to not
use #pragma BEGINDUMP/ENDDUMP and HB_INLINE( <params,...> ) { <Ccode;...> }
in core Harbour code.  Just simply such code can effectively block adding
some extensions to Harbour compiler because it reduce the compiler frontend
to C output.
There are also some other reasons and problems which can be exploited by
mixed C and Clipper code.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to