From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ivan Levashev Newsgroups: comp.lang.ada Subject: Re: Compile-time function execution. Date: Sun, 18 Jun 2017 07:49:36 +0700 Organization: A noiseless patient Spider Message-ID: References: <5307045c-c829-4183-908c-107293b66b40@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 18 Jun 2017 00:49:18 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9b101877d0a44da92488f407d3b635ef"; logging-data="26739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cPTzF+qinq5zpalvcF9gYKmIS3CIMFTE=" User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <5307045c-c829-4183-908c-107293b66b40@googlegroups.com> Cancel-Lock: sha1:XS0LNvqnA5SyblKQvS/yCTgn8Dk= Xref: news.eternal-september.org comp.lang.ada:46970 Date: 2017-06-18T07:49:36+07:00 List-Id: 06.06.2017 6:49, Shark8 пишет: > I recently came across this article describing a compile-time sort in > D -- https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/ -- and > vaguely recall reading something on how Ada could have compile-time > execution of functions too. > > Does anyone have a similar example in Ada? > What about mere (inspectable) source generation? QtAda has sample of integrating amoc into GPR. That's the way to go, I believe, more often, than not. Best Regards, Ivan Levashev, Barnaul -- If you want to get to the top, you have to start at the bottom