Given the desire to use the useful Region compiler directive in module files, what is the best approach to use the same units in previous versions of Delphi? There seems to be no βdecentβ approach. (Desired IDE Version - Delphi 7)
I like to have regions over method definitions to hide / show method definition hints and comments on version history, but I would have to surround Region directives with other compiler directives that seem to kill the βcleanupβ of region compiler directives.
I assume that a preprocessor could be written to comment on all Region / EndRegion directives if you are using a version of Delphi that does not support regions .. and then adds back for later versions?
I have not 100% switched to Delphi 2009 and must support multiple versions of the IDE.
source
share