Re: How does D’s ‘import’ work?

2023-06-20 Thread Ali Çehreli via Digitalmars-d-learn
On 6/20/23 08:09, Cecil Ward wrote: > I’m used to slow compilers on fast machines and compiling > gives me an excuse for more coffee and possibly fruity buns. Yes, all of us in past projects accepted C++'s slowness. We did get coffee, etc. One of my current colleagues regularly plays solitaire

A couple of questions about arrays and slices

2023-06-20 Thread Cecil Ward via Digitalmars-d-learn
First is an easy one: 1.) I have a large array and a sub-slice which I want to set up to be pointing into a sub-range of it. What do I write if I know the start and end indices ? Concerned about an off-by-one error, I have start_index and past_end_index (exclusive). 2.) I have a dynamic

Re: A couple of questions about arrays and slices

2023-06-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, June 20, 2023 8:09:26 PM MDT Cecil Ward via Digitalmars-d-learn wrote: > First is an easy one: > > 1.) I have a large array and a sub-slice which I want to set up > to be pointing into a sub-range of it. What do I write if I know > the start and end indices ? Concerned about an

Re: How does D’s ‘import’ work?

2023-06-20 Thread Cecil Ward via Digitalmars-d-learn
On Monday, 19 June 2023 at 16:24:03 UTC, rempas wrote: On Monday, 19 June 2023 at 12:48:26 UTC, Cecil Ward wrote: If I have sources to all the library routines, not libraries or .obj files. I am simply completely ignorant about the D tools including DUB, so off to do some reading. I’ve just

Re: How does D’s ‘import’ work?

2023-06-20 Thread Cecil Ward via Digitalmars-d-learn
On Sunday, 18 June 2023 at 21:51:14 UTC, Jonathan M Davis wrote: On Sunday, June 18, 2023 2:24:10 PM MDT Cecil Ward via Digitalmars-d-learn wrote: I wasn’t intending to use DMD, rather ldc if possible or GDC because of their excellent optimisation, in which DMD seems lacking, is that fair?