Handling arbitrary char ranges
Matt Kline via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Apr 20 13:09:29 PDT 2016
On Wednesday, 20 April 2016 at 20:00:58 UTC, ag0aep6g wrote:
> Maybe I've missed it, but you didn't say where the HTTP type
> comes from, did you?
std.net.curl: https://dlang.org/phobos/std_net_curl.html#.HTTP
(Sorry, I assumed that was a given since it's a standard library
type. Poor assumption, perhaps.)
I'd rather not write my own cURL wrapper. Do you think it would
be worthwhile starting a PR for Phobos to get it changed to
ubyte[]? A reading of https://dlang.org/spec/arrays.html
indicates the main difference is that that GC crawls void[], but
I would think that wouldn't matter for a short-lived buffer being
shoveled into libcurl, which is, by nature, a copy of the same
data somewhere else in your program...
More information about the Digitalmars-d-learn
mailing list