4 ms·
Well function pointers are actually an interesting case, function pointers should always refer to the program memory and thus aren't ambiguous. Things like stri
by DSMan195276 4y ago
Well function pointers are actually an interesting case, function pointers should always refer to the program memory and thus aren't ambiguous. Things like string literals are a problem though, you want them to be in the read-only program memory but most functions just take a `const char ` and have no way of indicating where the string is stored. And on the other side, if you _do_ opt to provide this information on every `const char ` that creates a whole lot of overhead to actually reading the contents of the string.