Re: getopt usage help to stderr?

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
On Wednesday, 9 April 2025 at 01:23:01 UTC, Salih Dincer wrote: On Tuesday, 8 April 2025 at 20:14:56 UTC, Andy Valencia wrote: p.s. Ironically, I could probably have coded a getopt in less time than I've spent on std.getopt... :) Please try the following example with the parameters -h, -e,

Re: const main args?

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
On Friday, 12 August 2011 at 22:51:34 UTC, Andrej Mitrovic wrote: That's pretty stupid, of course you want to modify the arguments. Classic example: void main(string[] args) { args.popFront; // get rid of name foreach (arg; args) { } } Shouldn’t do this

Tokens

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
I don’t like [$-1], I want to define a token L to be $-1 and use o[L]

Re: Capture context surrounding delegate

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
On Saturday, 10 May 2025 at 04:52:15 UTC, Python wrote: getchar(); I don’t like this

Re: Capture context surrounding delegate

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
On Monday, 12 May 2025 at 14:10:41 UTC, Python wrote: On Monday, 12 May 2025 at 08:35:02 UTC, Justin Allen Parrott wrote: On Saturday, 10 May 2025 at 04:52:15 UTC, Python wrote: getchar(); I don’t like this Poor man's tool to keep my threads running. Thread-wait or join

Re: Debugging on Windows

2025-05-12 Thread Justin Allen Parrott via Digitalmars-d-learn
On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote: Any tips? Debuggers phased out in the nineties

Re: const main args?

2025-05-13 Thread Justin Allen Parrott via Digitalmars-d-learn
There is absolutely nothing wrong with it. It is bad language

Re: Debugging on Windows

2025-05-13 Thread Justin Allen Parrott via Digitalmars-d-learn
On Tuesday, 13 May 2025 at 14:19:41 UTC, Python wrote: On Monday, 12 May 2025 at 07:33:34 UTC, Justin Allen Parrott wrote: On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote: Any tips? Debuggers phased out in the nineties Press F12 in your browser. You'll be surprised. I am not

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