Re: Who says we can't call C++ constructors?

2018-04-21 Thread Manu via Digitalmars-d-announce
On 21 April 2018 at 05:41, Atila Neves via Digitalmars-d-announce wrote: > From https://dlang.org/spec/cpp_interface.html: > > "C++ constructors, copy constructors, move constructors and destructors > cannot be called directly in D code". > > O RLY? > > // hdr.hpp > struct Struct { >

security update for dlang-requests

2018-04-21 Thread ikod via Digitalmars-d-announce
Hello, This is just notification about next dlang-requests release, where ssl peer verification will be turned on by default(instead of 'off'). This can lead to ssl exceptions if you send requests to servers with self-signed certificates for example. How to fix in case of problems: 1) you c

Re: Who says we can't call C++ constructors?

2018-04-21 Thread 12345swordy via Digitalmars-d-announce
On Saturday, 21 April 2018 at 12:41:02 UTC, Atila Neves wrote: From https://dlang.org/spec/cpp_interface.html: "C++ constructors, copy constructors, move constructors and destructors cannot be called directly in D code". O RLY? // hdr.hpp struct Struct { void *data; S

Who says we can't call C++ constructors?

2018-04-21 Thread Atila Neves via Digitalmars-d-announce
From https://dlang.org/spec/cpp_interface.html: "C++ constructors, copy constructors, move constructors and destructors cannot be called directly in D code". O RLY? // hdr.hpp struct Struct { void *data; Struct(int i); Struct(const Struct&); Struct(Stru