Compile-Time Sort in D
Adrian Matoga via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Fri Jun 9 05:52:43 PDT 2017
On Friday, 9 June 2017 at 12:15:50 UTC, Steven Schveighoffer
wrote:
> On 6/7/17 5:47 PM, John Carter wrote:
>> On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote:
>>> https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/
>>
>> Seems like you have inspired people...
>>
>> http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html
>>
>>
>
> That is kind of neat. While I can say that D can perform
> technically the same feat via pragma(msg, ...) and importing a
> file directly (would leave a comment on the blog, but there
> isn't a spot for it), the fact that you can execute arbitrary
> code in a block at compile time that can use the *actual* i/o
> routines you would use at runtime is pretty impressive.
>
> Stefan would have a field day with this power :)
Yeah, it feels C++'y when you need to leave CTFE if you want to
print some value computed in CTFE or use it as a name of file to
load. :/
More information about the Digitalmars-d-announce
mailing list