You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ddobrev char* is NOT always meant to work as placeholder for a string. So how can it be differentiated if it is meant to be pointer (hence better a 'ref char') or a string (so 'StringBuilder').
In my opinion, it would however be better to marshal std::string as StringBuilder...
It's impossible to determine. So we have to use the solution which works in both cases and that is StringBuilder because in the case of a pointer to a char it would simply be a StringBuilder with a single character.
std::string represented with a StringBuilder might or might not be a good idea but in any case it's unrelated to the current issue. Also it's quite difficult because std::string is a typedef to a template type and we don't have proper support for templates yet. So if you want to develop your idea, please file another issue.
There may be some gotchas such as ANSI/Unicode so some reading is needed but this can and should be done.
The text was updated successfully, but these errors were encountered: