d strings are the bane of my existance

Ivan Kazmenko gassa at mail.ru
Mon Dec 6 13:33:18 UTC 2021


On Sunday, 5 December 2021 at 16:37:21 UTC, Chris Katko wrote:
> Yes! Thank you! I just realized the latter part was broken when 
> I switched to using a uint for the addr. But I didn't know 
> string is an alias for immutable(char)[]! Thank you!

Yeah, a `const(char)[]` argument is designed to accept both 
`immutable(char)[]` (strings) and just `char[]` (mutable arrays 
of chars) for the arguments.

Ivan Kazmenko.


More information about the Digitalmars-d-learn mailing list