Re: Vibe.d no more using static this() {}

2018-02-25 Thread aberba via Digitalmars-d-learn
On Sunday, 25 February 2018 at 01:15:06 UTC, Seb wrote: On Friday, 23 February 2018 at 23:11:13 UTC, aberba wrote: I recently noticed vibe.d now using main loop which call the vibe.d event loop. "Recently"? FWIW this has been phased out a long time ago ;-) That's how I've been doing it

Re: Vibe.d no more using static this() {}

2018-02-24 Thread Seb via Digitalmars-d-learn
On Friday, 23 February 2018 at 23:11:13 UTC, aberba wrote: I recently noticed vibe.d now using main loop which call the vibe.d event loop. "Recently"? FWIW this has been phased out a long time ago ;-) --- 0.7.23 (2015) Definition of either VibeCustomMain or VibeDefaultMain is now a hard

Re: Vibe.d no more using static this() {}

2018-02-24 Thread bauss via Digitalmars-d-learn
On Friday, 23 February 2018 at 23:11:13 UTC, aberba wrote: I recently noticed vibe.d now using main loop which call the vibe.d event loop. Why that change? I can only assume it's because static constructors are a pain in the ass. https://dlang.org/spec/module.html#order_of_static_ctor

Re: Vibe.d no more using static this() {}

2018-02-23 Thread aberba via Digitalmars-d-learn
On Friday, 23 February 2018 at 23:11:13 UTC, aberba wrote: I recently noticed vibe.d now using main loop which call the vibe.d event loop. Why that change? Like: #!/usr/bin/env dub /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.d; void main() { auto