PHP to D Conversion

Vino akashvino79 at gmail.com
Fri Oct 18 09:21:46 UTC 2019


On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote:
> On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote:
>> [...]
>
> App.d
>
> import vibe.vibe;
> import avm.test;
>
> void main()
> {
> 	auto settings = new HTTPServerSettings;
> 	settings.port = 8080;
> 	settings.bindAddresses = ["127.0.0.1"];
> 	listenHTTP(settings, &hello);
>
> 	logInfo("Please open http://127.0.0.1:8080/ in your browser.");
> 	runApplication();
> }
>
> void hello(HTTPServerRequest req, HTTPServerResponse res)
> {
>     test t = new avmtest();
>     res.writeBody(t.getHostname);
> }

And now getting the error : Program exited with code -1073741819


More information about the Digitalmars-d-learn mailing list