Re: iota where step is a function

2023-05-24 Thread Rene Zwanenburg via Digitalmars-d-learn
On Wednesday, 24 May 2023 at 16:39:36 UTC, Ben Jones wrote: Is there a range like iota in phobos where step is a function? I want to specify begin/end and have the "step" be next = fun(prev). Should be easy to write, but don't want to reinvent the wheel. I think you’re looking for either

Re: How to use Dub and Digger to build Pull Requests?

2023-05-24 Thread Quirin Schroll via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 13:52:15 UTC, Vladimir Panteleev wrote: On Tuesday, 23 May 2023 at 13:50:09 UTC, Quirin Schroll wrote: ``` object.Exception@%LOCALAPPDATA%\dub\packages\ae-0.0.3236\ae\sys\d\manager.d(898): Command ["make", "-f", "win32.mak", "MODEL=32",

Re: How to use Dub and Digger to build Pull Requests?

2023-05-24 Thread Danny Arends via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 13:51:29 UTC, Quirin Schroll wrote: On Tuesday, 23 May 2023 at 13:50:09 UTC, Quirin Schroll wrote: The dlang-bot writes a message to every PR: Testing this PR locally If you don't have a local development environment setup, you can use Digger to test this PR:

Re: iota where step is a function

2023-05-24 Thread anonymouse via Digitalmars-d-learn
On Wednesday, 24 May 2023 at 16:39:36 UTC, Ben Jones wrote: Is there a range like iota in phobos where step is a function? I want to specify begin/end and have the "step" be next = fun(prev). Should be easy to write, but don't want to reinvent the wheel. D import std.stdio; import

Re: request assistance resolving a std.net.curl segmentation fault

2023-05-24 Thread anonymouse via Digitalmars-d-learn
On Saturday, 20 May 2023 at 09:20:54 UTC, kdevel wrote: What if the internet connection is not re-established within an reasonable amount of time? What if the resource is no longer available on the server (HTTP eror 404 [1])? If there is an interactive user: Wouldn't it be better have the

Re: iota where step is a function

2023-05-24 Thread Ben Jones via Digitalmars-d-learn
On Thursday, 25 May 2023 at 00:39:02 UTC, anonymouse wrote: I think I misunderstood what was being asked here. My particular use case is to step using * rather than +, so something like for(i = 1; i < N; i *= 2). `sequence` worked for what I was doing well enough

Re: iota where step is a function

2023-05-24 Thread anonymouse via Digitalmars-d-learn
On Thursday, 25 May 2023 at 00:18:44 UTC, anonymouse wrote: On Wednesday, 24 May 2023 at 16:39:36 UTC, Ben Jones wrote: Is there a range like iota in phobos where step is a function? I want to specify begin/end and have the "step" be next = fun(prev). Should be easy to write, but don't want

Re: Best way to use C library

2023-05-24 Thread Maximilian Naderer via Digitalmars-d-learn
On Monday, 22 May 2023 at 22:22:50 UTC, Theo wrote: On Friday, 19 May 2023 at 18:31:45 UTC, Maximilian Naderer wrote: .. I’m hope somebody could give me some insights. Thank you ! Kind regards from Austria Max DConf Online '22 - Translating C to D (Dennis Korpel)

Re: Log rotation in std.logger.filelogger

2023-05-24 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 14:10:52 UTC, apz28 wrote: On Tuesday, 23 May 2023 at 13:13:18 UTC, Andrew wrote: On Tuesday, 23 May 2023 at 11:21:07 UTC, apz28 wrote: [...] Please don't take this as an insult, as I've also written my own logging library lol. But I have a feeling that our