On Tuesday, 6 March 2018 at 20:37:34 UTC, Steven Schveighoffer wrote:
On 3/6/18 1:09 PM, Jordi Gutiérrez Hermoso wrote:
I wrote a blog post about working on Advent of Code in D. You can read it here:

http://jordi.inversethought.com/blog/advent-of-d/

I'm enjoying this.

One thing jumped out at me: static does not mean execute at compile time (exactly), it really means allocate this data in thread-local storage.

Thanks for the explanation. I forgot about using enum instead. I think I've only briefly encountered it before. I'm aware of the global storage of static in this context. I like that it's the same keyword for static foreach; that's kind of what I was thinking when I wrote that just adding a static can result in compile-time execution.

BTW, that tour page needs updating, it has a few errors in it.

You mean the Dlang tour? I've been meaning for a while to be able to generate a url to its Gems section but I've never managed to untangle its Vibe.d structure enough to do so.

Reply via email to