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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.13.116 with SMTP id 107mr3923378oti.4.1497562713042; Thu, 15 Jun 2017 14:38:33 -0700 (PDT) X-Received: by 10.157.26.93 with SMTP id u29mr236470otu.2.1497562713005; Thu, 15 Jun 2017 14:38:33 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f20no910585itb.0!news-out.google.com!s132ni1632itb.0!nntp.google.com!f20no910581itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 15 Jun 2017 14:38:32 -0700 (PDT) In-Reply-To: <5307045c-c829-4183-908c-107293b66b40@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.168.151.171; posting-account=MRPdDAoAAADUJmZVjnYaoafXFMadSeY1 NNTP-Posting-Host: 199.168.151.171 References: <5307045c-c829-4183-908c-107293b66b40@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <21e06913-e5b0-4f9b-ba6c-ed65bfa6b950@googlegroups.com> Subject: Re: Compile-time function execution. From: Olivier Henley Injection-Date: Thu, 15 Jun 2017 21:38:33 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:46955 Date: 2017-06-15T14:38:32-07:00 List-Id: On Monday, June 5, 2017 at 7:49:14 PM UTC-4, Shark8 wrote: > 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? Speaking of which: https://hookrace.net/blog/what-is-special-about-nim/ It covers short and sweet, CTFE, Template and Macros(analyze and manipulate the AST) in Nim. Great stuff.