SHOW:
|
|
- or go back to the newest paste.
| 1 | import std.net.curl; | |
| 2 | ||
| 3 | class A {
| |
| 4 | HTTP http; | |
| 5 | - | this() {
|
| 5 | + | this(HTTP http) {
|
| 6 | - | http = HTTP(); |
| 6 | + | this.http = http; |
| 7 | } | |
| 8 | } | |
| 9 | ||
| 10 | void main() {
| |
| 11 | - | A a = new A(); |
| 11 | + | auto http = HTTP(); |
| 12 | - | //a.http.shutdown(); fix |
| 12 | + | A a = new A(http); |
| 13 | } |