Re: const main args?

2025-05-14 Thread Justin Allen Parrott via Digitalmars-d-learn
On Tuesday, 13 May 2025 at 16:25:25 UTC, Ali Çehreli wrote: On 5/13/25 6:27 AM, Justin Allen Parrott wrote: There is absolutely nothing wrong with it. It is bad language First, thanks for reviving a thread from 2011. Your comment seems sarcastic For the record, neither the D programming la

Re: string from C function - to!string

2025-05-14 Thread Dom DiSc via Digitalmars-d-learn
On Wednesday, 14 May 2025 at 11:38:59 UTC, Nick Treleaven wrote: On Wednesday, 14 May 2025 at 03:36:40 UTC, Jonathan M Davis wrote: to!string definitely deals with null-terminated strings, or it wouldn't work at all. It's not the kind of thing that would work by accident. I don't think it's g

Re: string from C function - to!string

2025-05-14 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, May 14, 2025 5:38:59 AM Mountain Daylight Time Nick Treleaven via Digitalmars-d-learn wrote: > On Wednesday, 14 May 2025 at 03:36:40 UTC, Jonathan M Davis wrote: > > to!string definitely deals with null-terminated strings, or it > > wouldn't work at all. It's not the kind of thing th

Re: string from C function - to!string

2025-05-14 Thread Nick Treleaven via Digitalmars-d-learn
On Wednesday, 14 May 2025 at 03:36:40 UTC, Jonathan M Davis wrote: to!string definitely deals with null-terminated strings, or it wouldn't work at all. It's not the kind of thing that would work by accident. I don't think it's good API design: Pointer to string conversions convert the pointer