JJ
2016-11-06 20:51:47 UTC
I have this simple code.
program test;
type abc = variant;
begin
end.
If I compile it, the compiler includes the Variants unit, even though the
variant type is declared in the System unit.
The above code doesn't even refer the variant type as a variable, so there
no need for variant variable initialization. There should be no variant
related code to be included in the program at all.
So how to prevent the Variant unit to be included into the program by the
compiler? Is there a compiler directive for this? Or a command line
parameter for DCC32?
program test;
type abc = variant;
begin
end.
If I compile it, the compiler includes the Variants unit, even though the
variant type is declared in the System unit.
The above code doesn't even refer the variant type as a variable, so there
no need for variant variable initialization. There should be no variant
related code to be included in the program at all.
So how to prevent the Variant unit to be included into the program by the
compiler? Is there a compiler directive for this? Or a command line
parameter for DCC32?