Re: Help needed to learn templates

2022-03-20 Thread Vinod K Chandran via Digitalmars-d-learn
On Saturday, 19 March 2022 at 22:31:19 UTC, Stanislav Blinov wrote: It is appearing not in the `static if`, but in the `is` expression, which I described further in the rest of my first reply. Sorry if that wasn't clear. No, it was my mistake, I missed it. The other template syntax - `temp

Re: Printing a quoted string

2022-03-20 Thread Caten via Digitalmars-d-learn
On Sunday, 2 January 2022 at 21:16:55 UTC, Amit wrote: On Sunday, 2 January 2022 at 19:26:50 UTC, WebFreak001 wrote: [...] On Sunday, 2 January 2022 at 19:37:38 UTC, JG wrote: [...] Yes! That's what I needed. I wrapped it in a function like so: ```d string quote(string s) { return for

Re: Printing a quoted string

2022-03-20 Thread Salih Dincer via Digitalmars-d-learn
On Sunday, 20 March 2022 at 09:42:44 UTC, Caten wrote: On Sunday, 2 January 2022 at 21:16:55 UTC, Amit wrote: On Sunday, 2 January 2022 at 19:26:50 UTC, WebFreak001 wrote: [...] On Sunday, 2 January 2022 at 19:37:38 UTC, JG wrote: [...] Yes! That's what I needed. I wrapped it in a functio

Re: I like dlang but i don't like dub

2022-03-20 Thread Adam D Ruppe via Digitalmars-d-learn
On Friday, 18 March 2022 at 18:16:51 UTC, Ali Çehreli wrote: As a long-time part of the D community, I am ashamed to admit that I don't use dub. I am ashamed because there is no particular reason, or my reasons may not be rational. dub is legitimately awful. I only use it when forced to, and

Re: I like dlang but i don't like dub

2022-03-20 Thread Ali Çehreli via Digitalmars-d-learn
On 3/20/22 05:27, Adam D Ruppe wrote: > So if it just coincidentally happens to be the same code, I'd actually > rather copy/paste it than import it. This is very interesting because it is so much against common guidelines. I first read about such copy/paste in a book (my guess is John Lakos's

Re: Nested Classes with inheritance

2022-03-20 Thread Era Scarecrow via Digitalmars-d-learn
On Sunday, 20 March 2022 at 05:44:44 UTC, Salih Dincer wrote: On Sunday, 20 March 2022 at 01:28:44 UTC, Era Scarecrow wrote: Inheritance and Polymorphism is one of the hardest things to grasp mostly because examples they give in other books of 'objects' is so far unrelated to software that it d

Re: Example of Windows SSL with Secure Channel?

2022-03-20 Thread a11e99z via Digitalmars-d-learn
On Saturday, 19 March 2022 at 16:54:03 UTC, Anonymouse wrote: Does anyone have an example snippet code connecting to, reading from and writing to a server using SSL under Windows with Secure Channel? Something in a personal project you wouldn't mind sharing a part of to let me dissect? http