Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of NEXTGEN compiler conditional?

While working on a project we were having 4000+ warnings. To remove some of those I found one compiler Directive as NEXTGEN.

After Using this directive I found that there is a much more minimize in the warnings to 257.

I want to know if we have any issues in using the compiler directive. Are there any drawback of this directive for my windows application. I am using Delphi 10.

on Site of Embarcadero I found very less information.

Can anyone tell me something about the same?

like image 837
A B Avatar asked Oct 16 '25 17:10

A B


1 Answers

Delphi's NEXTGEN conditional symbol marks the next-generation ARC compilers. The Windows and OSX compilers are not NEXTGEN compilers. The iOS and Android compilers are NEXTGEN. Initial release of Linux compiler in 10.2 Tokyo had NEXTGEN defined, but since 10.3 Rio it does not.

Any code compiled for Windows that is marked with NEXTGEN will be ignored in current compilers.

See Conditional symbols:

Defined for compilers (such as the Delphi mobile compilers) that use "next-generation" language features, such as 0-based strings. New in XE4/iOS

Update: 10.4 Sydney

NEXTGEN symbol has been removed from all compilers, along with AUTOREFCOUNT and WEAKINSTREF symbols.

like image 112
Dalija Prasnikar Avatar answered Oct 19 '25 12:10

Dalija Prasnikar