From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:4e89:0:b0:405:3a8b:b7e0 with SMTP id 9-20020ac84e89000000b004053a8bb7e0mr28715qtp.13.1691356661068; Sun, 06 Aug 2023 14:17:41 -0700 (PDT) X-Received: by 2002:a05:6808:1584:b0:3a7:4424:7558 with SMTP id t4-20020a056808158400b003a744247558mr12838407oiw.3.1691356660841; Sun, 06 Aug 2023 14:17:40 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 6 Aug 2023 14:17:40 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=161.38.141.234; posting-account=enh51goAAAB8ClLMTw1eFWidz5lUzij_ NNTP-Posting-Host: 161.38.141.234 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3bdf9138-c60d-48a4-b720-21c25e96f16cn@googlegroups.com> Subject: Using 'Image with Alire From: Seth Workman Injection-Date: Sun, 06 Aug 2023 21:17:41 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1543 Xref: news.eternal-september.org comp.lang.ada:65493 List-Id: I have only started learning about Ada recently and have discovered the 'Image attribute that can be used on all types starting in ada 2022. I am using Alire and added the following to include the `-gnat2022` switch. ``` for Default_Switches ("Ada") use Learning_Config.Ada_Compiler_Switches & ("-gnat2022"); ``` The Alire documentation warns about switches ~"In general, this should be avoided to preserve consistency in the ecosystem" Is this the correct way about adding this switch or is there a way to use a toolchain that already has it by default?