Jump to content

igors

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by igors


  1. 19 hours ago, Uwe Raabe said:

    In case my code contains a check like:

    
    {$IF CompilerVersion < RAD_Chicago}
    {$IFEND}
    {$IF CompilerVersion < RAD_Sydney}
    {$IFEND}
    {$IF CompilerVersion < RAD_Rio}
    {$IFEND}

    > that may perfectly compile with a future Delphi version named Chicago incorporating constants 

    I had somethging else in mind, for Delphi to incorporate features, for example if it supports attributes then ATTRIBUTES would be defined and instead of writing IF CompilerVersion > XX you would say $IF ATTRIBUTES...

    So from that point on, you wouldn't this .inc file at all, Delphi would support all these checks.


  2. On 7/25/2020 at 12:42 PM, Uwe Raabe said:

    The problem is, that you need to use always the latest version of this file as part of your library, so it is capable to handle all Delphi versions.

     

    Even if starting with 10.5 Delphi would provide such a file itself, it will be outdated as soon as 10.6 arrives. So you have to use the newer file even for older Delphi versions, which somehow rules out such a file coming with Delphi itself.

    If it's incorporated into the compiler there's no additional file needed for Delphi itself. it will understand all of these and add something new as time goes. Library author can include this file into the library as a fallback for older versions.

×