Re: Can't get into debugger in vscode on macOS

2023-10-20 Thread Imperatorn via Digitalmars-d-learn
On Thursday, 19 October 2023 at 06:03:06 UTC, Daniel Zuncke wrote: Hello, I need some help getting into the debugger in vscode on macOS. It did work some months ago but that was finicky to set up. Maybe I am forgetting something now? [...] This can also happen if there's not a correct progra

Installing DMD on Windows

2023-10-20 Thread Quirin Schroll via Digitalmars-d-learn
I recently removed Visual Studio 2017 and upgraded to 2022. When I installed the latest DMD, it told me it couldn’t find a Visual Studio installation and offered me to download e.g. Visual Studio 2019 or just VS 2019 Build Tools, etc. Unsure what to do, I thought VS 2019 Build Tools is probabl

Re: Installing DMD on Windows

2023-10-20 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
I've gone ahead and reported it, most likely nobody has used VS2022 professional edition. https://issues.dlang.org/show_bug.cgi?id=24191

Re: Installing DMD on Windows

2023-10-20 Thread Imperatorn via Digitalmars-d-learn
On Friday, 20 October 2023 at 12:19:32 UTC, Quirin Schroll wrote: I recently removed Visual Studio 2017 and upgraded to 2022. When I installed the latest DMD, it told me it couldn’t find a Visual Studio installation and offered me to download e.g. Visual Studio 2019 or just VS 2019 Build Tools,

Want to try out string interpolation in D?

2023-10-20 Thread Imperatorn via Digitalmars-d-learn
Here's a script to get you started ```bash git clone https://github.com/adamdruppe/dmd.git cd dmd git checkout interp rdmd compiler/src/build.d ``` I don't want to copy files anywhere, so the user has to do that manually: Copy dmd from the generated executable to your D bin installation fold

SlicedString Length

2023-10-20 Thread Salih Dincer via Digitalmars-d-learn
Hi, I have a string wrapper called SlicedString. What it does is very simple: Returning each piece as a slice with a assured separator at compile time by used indexOf() ! Here it is: ```d struct SlicedString(string E) { long index, back, next = -1; string data; auto length() const {

Re: Want to try out string interpolation in D?

2023-10-20 Thread Imperatorn via Digitalmars-d-learn
On Friday, 20 October 2023 at 16:41:40 UTC, Imperatorn wrote: Here's a script to get you started ```bash git clone https://github.com/adamdruppe/dmd.git cd dmd git checkout interp rdmd compiler/src/build.d ``` [...] We just need support for it in the tools, then D will be a Dream come true

Re: SlicedString Length

2023-10-20 Thread Salih Dincer via Digitalmars-d-learn
Good news! I collected them in a template with the condition of running split() once at compile time. The result seems perfect? What are your thoughts? ```d void main() { auto slc = sliceOff!"abc def ghi"; auto len = slc.length; slc.index = len; import std.stdio, std.algorithm: eq