Vibe.d no more using static this() {}
aberba
karabutaworld at gmail.com
Fri Feb 23 23:18:59 UTC 2018
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 settings = new HTTPServerSettings;
settings.port = 8080;
listenHTTP(settings, (req, res) { res.writeBody("Hello
Vibe.d: " ~ req.path); });
runApplication();
}
More information about the Digitalmars-d-learn
mailing list