Re: Hello world/Web server task on RosettaCode fails

2021-07-19 Thread Brian Tiffin via Digitalmars-d-learn
On Saturday, 17 July 2021 at 04:13:53 UTC, btiffin wrote: On Friday, 16 July 2021 at 20:04:21 UTC, jfondren wrote: On Friday, 16 July 2021 at 19:25:32 UTC, btiffin wrote: Using gdc-11 and Seamonkey. https://rosettacode.org/wiki/Hello_world/Web_server#D does not compile. The `while` as you

Re: Hello world/Web server task on RosettaCode fails

2021-07-16 Thread btiffin via Digitalmars-d-learn
On Friday, 16 July 2021 at 20:04:21 UTC, jfondren wrote: On Friday, 16 July 2021 at 19:25:32 UTC, btiffin wrote: Using gdc-11 and Seamonkey. https://rosettacode.org/wiki/Hello_world/Web_server#D does not compile. The `while` as you noted is wrong. The server also doesn't turn REUSEADDR on

Re: Hello world/Web server task on RosettaCode fails

2021-07-16 Thread jfondren via Digitalmars-d-learn
On Friday, 16 July 2021 at 20:04:21 UTC, jfondren wrote: static const greeting = q"EOF Or just `immutable greeting = ...`

Re: Hello world/Web server task on RosettaCode fails

2021-07-16 Thread jfondren via Digitalmars-d-learn
On Friday, 16 July 2021 at 19:25:32 UTC, btiffin wrote: Using gdc-11 and Seamonkey. https://rosettacode.org/wiki/Hello_world/Web_server#D does not compile. The `while` as you noted is wrong. The server also doesn't turn REUSEADDR on for the server socket, so this will be very annoying to

Hello world/Web server task on RosettaCode fails

2021-07-16 Thread btiffin via Digitalmars-d-learn
Using gdc-11 and Seamonkey. https://rosettacode.org/wiki/Hello_world/Web_server#D does not compile. ```d prompt$ gdc-11 helloServer.d helloServer.d:12:29: error: cannot cast expression currSock = listener.accept() of type std.socket.Socket to bool 12 | while(cast(bool)(currSock =