Curl support RFC

Jonas Drewsen jdrewsen at nospam.com
Mon Mar 14 14:07:14 PDT 2011


On 14/03/11 18.46, Andrei Alexandrescu wrote:
> On 3/14/11 10:06 AM, Jonas Drewsen wrote:
>> const(ubyte)[] for input
>> void[] for output
>>
>> that sounds reasonable. I guess that if everybody can agree on this then
>> the all of phobos (e.g. std.file) should use the same types?
>
> Move the const from the first to the second line :o). I see no reason
> why user code can't mess with the buffer once read.

You are right of course. bummer.

> Yes, I agree std.file et al should switch to ubyte[].
>
> Andrei

Then lets hope someone makes a patch for it. Maybe I'll make it when I'm 
done with the curl stuff if no one beats me to it.

/Jonas




More information about the Digitalmars-d mailing list