Re: Where I download Digital Mars C Preprocessor sppn.exe?

2022-04-03 Thread Tejas via Digitalmars-d-learn
On Sunday, 3 April 2022 at 08:37:45 UTC, user1234 wrote: On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote: Where I download Digital Mars C Preprocessor sppn.exe? I need it to use ImportC it's part of the [DMC] toolchain. [DMC]: http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm857c

Re: Const Variables

2022-04-03 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Apr 03, 2022 at 03:42:15PM -0700, Ali Çehreli via Digitalmars-d-learn wrote: [...] > In any case, there is no logical constness in D. (However, one can > play tricks like using casts. (Which may be undefined behavior, etc. > etc.)) [...] A thought occurred to me. What is logical const, a

Re: Const Variables

2022-04-03 Thread Ali Çehreli via Digitalmars-d-learn
On 4/3/22 11:24, Salih Dincer wrote: > On Sunday, 3 April 2022 at 14:29:22 UTC, Paul Backus wrote: >> On Sunday, 3 April 2022 at 13:50:28 UTC, Salih Dincer wrote: >>> Hi all, >>> >>> Do you have a good example of how const variables actually work? You are right that const is not absolutely necess

Re: Const Variables

2022-04-03 Thread Salih Dincer via Digitalmars-d-learn
On Sunday, 3 April 2022 at 14:29:22 UTC, Paul Backus wrote: On Sunday, 3 April 2022 at 13:50:28 UTC, Salih Dincer wrote: Hi all, Do you have a good example of how const variables actually work? So I'm not talking about system resources and programming errors. I want to say it's good. Beca

Re: arsd.minigui

2022-04-03 Thread JG via Digitalmars-d-learn
On Sunday, 3 April 2022 at 17:10:48 UTC, Adam Ruppe wrote: On Sunday, 3 April 2022 at 16:58:03 UTC, JG wrote: [...] Which resizeImage did you use, from the imageresize module? What pain you have with it? Some of its settings take some tweaking. [...] Thank you very much for your quick re

Re: arsd.minigui

2022-04-03 Thread Adam Ruppe via Digitalmars-d-learn
On Sunday, 3 April 2022 at 16:58:03 UTC, JG wrote: Hi, I have an png image that I generate (via pdf via pdflatex) that I want to scale and display in a widget. Is this possible via something in arsd? I tried resizeImage but that doesn't seem to do what I expect. Any suggestions? Which resiz

arsd.minigui

2022-04-03 Thread JG via Digitalmars-d-learn
Hi, I have an png image that I generate (via pdf via pdflatex) that I want to scale and display in a widget. Is this possible via something in arsd? I tried resizeImage but that doesn't seem to do what I expect. Any suggestions?

Re: Unit tests via DUB

2022-04-03 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 2 April 2022 at 11:53:12 UTC, alexanderzhirov wrote: I don't quite understand why compiling unit tests using DUB doesn't work. [...] Have a look here https://andre2007.github.io/d-tips/dub/application_template/ Kind regards Andre

Re: Const Variables

2022-04-03 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 3 April 2022 at 13:50:28 UTC, Salih Dincer wrote: Hi all, Do you have a good example of how const variables actually work? So I'm not talking about system resources and programming errors. I want to say it's good. Because if everything works without it, why does it exist? This

Const Variables

2022-04-03 Thread Salih Dincer via Digitalmars-d-learn
Hi all, Do you have a good example of how const variables actually work? So I'm not talking about system resources and programming errors. I want to say it's good. Because if everything works without it, why does it exist? Thanks, SDB@79

Re: Where I download Digital Mars C Preprocessor sppn.exe?

2022-04-03 Thread user1234 via Digitalmars-d-learn
On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote: Where I download Digital Mars C Preprocessor sppn.exe? I need it to use ImportC it's part of the [DMC] toolchain. [DMC]: http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm857c.zip

Re: Where I download Digital Mars C Preprocessor sppn.exe?

2022-04-03 Thread forkit via Digitalmars-d-learn
On Saturday, 2 April 2022 at 23:40:39 UTC, Marcone wrote: ImportC is deprecated as everything in D is deprecated and abandoned. No link works, every download link is broken as no one cares. All D code is always full of bugs and needs to be corrected by the user before trying to run it, in order