Curl wrapper round two

Jonathan M Davis jmdavisProg at gmx.com
Sun Jun 19 02:43:33 PDT 2011


On 2011-06-19 02:12, Johannes Pfau wrote:
> Jimmy Cao wrote:
> >Also, why the bool dummy argument in the Curl struct constructor?
> 
> I guess that's because structs can't have default constructors. Is
> there a better solution to this problem?

The usual solution is to have a static opCall function with no parameters. 
Then you can do

auto s = S();

though

S s;

of course is still S.init;

- Jonathan M Davis


More information about the Digitalmars-d mailing list