Am I missing with ref in this code?

Suliman evermind at live.ru
Thu Jan 24 15:28:19 UTC 2019


I am doing very small link-checker. Here is' code 
https://run.dlang.io/is/p8whrA

I am expecting that on line:
writefln("url: %s, status: %s", url.url, url.status);

I will print link and it's status. But I am getting only:
url: http://127.0.0.1:8081/hck, status:
url: http://127.0.0.1:8081/hck2, status:
url: http://127.0.0.1:8081/hck3, status:

It's seems that I missed something with refs? Could you help me 
find error?



More information about the Digitalmars-d-learn mailing list