> Back to the CURL prefix, what is wrong with it?
It prevents stuttering when using it `curl.CURL_*`.
> What would the "CURL" distinct type be without the CURL prefix?
`CURL` isn't a prefix there.
Take more time to think things through.
It prevents stuttering when using it `curl.CURL_*`.
> What would the "CURL" distinct type be without the CURL prefix?
`CURL` isn't a prefix there.
Take more time to think things through.
If you reply, do so without ad hominems and with some respect. Thank you.
You mean `curl.GLOBAL_ALL`, and it's for https://curl.se/libcurl/c/curl_global_init.html
// CURL_GLOBAL_ALL combines all initialization flags.
CURL_GLOBAL_ALL: i64 = 3
It has nothing to do with "curl_global_init()". This - which is a high-level function intended to be called by the users of the library - has: init :: proc() -> (ok: bool) {
return curl_global_init(CURL_GLOBAL_ALL) == 0
}
As you can see, higher-level function calls low-level function. The higher-level function does not have "curl" as the prefix.My question still stands and has not been answered.