What's the default implementation of opCmp/opEquals for structs?

2021-03-03 Thread Jack via Digitalmars-d-learn
the one that the compiler defaults to when you don't provide one?

Re: What's the default implementation of opCmp/opEquals for structs?

2021-03-03 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/3/21 1:37 PM, Jack wrote: the one that the compiler defaults to when you don't provide one? There's no default opCmp. For opEquals, it's a memberwise comparison. -Steve

Re: Vibe.d tutorial

2021-03-03 Thread aberba via Digitalmars-d-learn
On Monday, 1 March 2021 at 22:25:39 UTC, Rey Valeza wrote: Hi, I wrote a tutorial on Vibe.d while trying to re-learn Vibe.d. I find that most of Kai Nacke's book need updating, so I wrote a tutorial while trying to re-learn it. Here it is.

D's Continous Changing

2021-03-03 Thread harakim via Digitalmars-d-learn
Every time I come back to a D program I wrote over a year ago, it seems like there are numerous breaking changes and it takes me a while to get it to compile again. And the documentation is difficult to figure out. I wish I could remember every time I've had to change this line of code, but I

Re: How to get output of piped process?

2021-03-03 Thread Danny Arends via Digitalmars-d-learn
On Monday, 22 February 2021 at 14:52:22 UTC, frame wrote: On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote: https://github.com/DannyArends/DaNode/blob/master/danode/process.d Danny This example shows how easy it is to implement a non-blocking stream. Phobos knows this for

Re: tiny alternative to std library

2021-03-03 Thread Anthony Quizon via Digitalmars-d-learn
On Wednesday, 3 March 2021 at 14:17:02 UTC, Siemargl wrote: On Wednesday, 3 March 2021 at 14:12:54 UTC, Siemargl wrote: I test full rebuild of dlang-IDE (20k loc) now for dmd under Update, 20k loc without counting libraries. Thanks for the info. Yeah the times I'm trying to reach are

Re: How to get output of piped process?

2021-03-03 Thread Danny Arends via Digitalmars-d-learn
On Thursday, 25 February 2021 at 15:28:25 UTC, kdevel wrote: On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote: On Friday, 19 February 2021 at 15:39:25 UTC, kdevel wrote: [...] Fortunately the D runtime /does/ take care and it throws---if the signal is ignored beforehand. I

Re: How to get output of piped process?

2021-03-03 Thread Danny Arends via Digitalmars-d-learn
On Tuesday, 23 February 2021 at 10:07:03 UTC, Imperatorn wrote: On Monday, 22 February 2021 at 13:23:40 UTC, Danny Arends wrote: On Friday, 19 February 2021 at 15:39:25 UTC, kdevel wrote: [...] Perhaps a bit late, but this is how I deal with pipes and spawnShell. Read one byte at a time

Re: D's Continous Changing

2021-03-03 Thread matheus via Digitalmars-d-learn
On Thursday, 4 March 2021 at 05:44:53 UTC, harakim wrote: ... Yes it's a problem indeed. I had the same problem and that's worse when you don't upgrade very often. But let me tell something, where I work we have software in C#, do you think that upgrading was smoothly with all the tools

Re: D's Continous Changing

2021-03-03 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Mar 04, 2021 at 06:43:57AM +, user1234 via Digitalmars-d-learn wrote: > On Thursday, 4 March 2021 at 05:44:53 UTC, harakim wrote: > > For the record, I was able to resolve all of my issues in about 7 > > hours. That included upgrading from DerelictSDL to bindbc and > > converting to

Re: D's Continous Changing

2021-03-03 Thread harakim via Digitalmars-d-learn
For the record, I was able to resolve all of my issues in about 7 hours. That included upgrading from DerelictSDL to bindbc and converting to use dub instead of make. I hope my above post does not lead people to believe that I don't like D, because I otherwise wouldn't have lost track of time

Re: D's Continous Changing

2021-03-03 Thread user1234 via Digitalmars-d-learn
On Thursday, 4 March 2021 at 05:44:53 UTC, harakim wrote: For the record, I was able to resolve all of my issues in about 7 hours. That included upgrading from DerelictSDL to bindbc and converting to use dub instead of make. I hope my above post does not lead people to believe that I don't

Re: tiny alternative to std library

2021-03-03 Thread Anthony via Digitalmars-d-learn
On Wednesday, 3 March 2021 at 07:23:58 UTC, Siemargl wrote: On Wednesday, 3 March 2021 at 03:52:13 UTC, Anthony Quizon wrote: On Monday, 1 March 2021 at 08:52:35 UTC, Imperatorn wrote: Having a library with bare minimum meta programming would help with this I think. I'm willing to pay the

Re: tiny alternative to std library

2021-03-03 Thread Siemargl via Digitalmars-d-learn
On Wednesday, 3 March 2021 at 14:12:54 UTC, Siemargl wrote: I test full rebuild of dlang-IDE (20k loc) now for dmd under Update, 20k loc without counting libraries.

Re: tiny alternative to std library

2021-03-03 Thread Siemargl via Digitalmars-d-learn
On Wednesday, 3 March 2021 at 09:02:54 UTC, Anthony wrote: Strange, usual D programs builds fast. What build times do you get? Seems like some other people have similar issues: https://forum.dlang.org/post/pvseqkfkgaopsnhqe...@forum.dlang.org