How to activate the extended GNAT Ada superset (GNAT Reference Manual) (original) (raw)


17.1 How to activate the extended GNAT Ada superset

There are two ways to activate the extended GNAT Ada superset:

pragma Extensions_Allowed (On)

As a configuration pragma, you can either put it at the beginning of a source file, or in a .adc file corresponding to your project.

Attention: You can activate the experimental set of extensions in addition by using either the -gnatX0 command-line option, or the pragma Extensions_Allowed withAll_Extensions as an argument. However, it is not recommended you use this subset for serious projects; it is only meant as a technology preview for use in playground experiments.