I have two modules
1)
unit a;
interface
const
UseFeature = 'Yes';
.....
2)
unit b;
uses a{$IF UseFeature='Yes'}, c{$IFEND};
...
Version 3.2.2 doesn't recognize UseFeature value throughout all unit b.
3.99 recognizes the value of UseFeature in the implementation part of unit b, but still doesn't recognize it in its uses section.
Delphi handles it perfectly - UseFeature is known in the uses section and all over the whole unit b.
Of course if I change $IF to $IFDEF UseFeature and place it in the project options, it will work, but I dont like it - required full rebuild, often conditional parts are marked as erroneous in Delphi (though they are actually not) and for me it's much cleaner and nicer to have conditions directly in the code than in the project options.
What can be done here? Did I miss something?