Curl wrapper round two

Jacob Carlborg doob at me.com
Sun Jun 19 05:52:53 PDT 2011


On 2011-06-19 11:44, jdrewsen wrote:
> Den 19-06-2011 11:12, Johannes Pfau skrev:
>> 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?
>
> That is why yes. I could just make a static "create()" function instead,
> but I went for this model. I would very much like to know a better
> solution.

A static opCall function allow this syntax:

auto s = Struct();

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list