> -----Original Message-----
> From: curl-library <[email protected]> On Behalf Of Daniel
> Stenberg via curl-library
> Sent: Tuesday, 10 December, 2019 15:04
> To: Jeff Mears via curl-library <[email protected]>
> Cc: Daniel Stenberg <[email protected]>
> Subject: Re: curl_easy_setopt type checking for C++
> 
> If there's a downside with automatically converting ints to longs in those two
> functions, it is that it will create more code out there for people to copy 
> and
> paste from that will generate errors and pain if that C++ version would look
> exactly the same as the C version but in that imaginary C++ version we can
> pass in an int and it will be fine we cannot in the C version...
> 
> So, I lean towards erroring on wrong type.

+1 for consistency.

Marcel

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to