Calling C functions that modify a string
Steven Schveighoffer
schveiguy at gmail.com
Thu Jun 15 14:02:01 UTC 2023
On 6/15/23 9:18 AM, Steven Schveighoffer wrote:
> So interestingly enough, toStringz is pure, and returns an unrelated
> type, so you shouldn't need to cast. However, for some reason, it does
> require a cast. That seems like a bug to me.
Oh wait, a pure function can return immutable data that isn't allocated
on the heap. Nevermind.
-Steve
More information about the Digitalmars-d-learn
mailing list