How do I Cancel My EL AL Flight Booking?

2024-01-09 Thread flights villa via Digitalmars-d-learn
To cancel your EL AL flight booking, you'll need to follow their cancellation policy and process. Keep in mind that the specific steps and fees associated with cancellation may vary depending on the type of ticket you purchased and the fare rules. Here are general steps to help you cancel yo

Re: static array is not a range

2024-01-09 Thread Alexibu via Digitalmars-d-learn
On Tuesday, 9 January 2024 at 13:22:24 UTC, bachmeier wrote: On Tuesday, 9 January 2024 at 10:11:35 UTC, Alexibu wrote: It looks like isInputRange is false for arrays with fixed length by design. I can do: ```d float[4] arr; foreach(x;arr) writefln("%s",x) ``` but not : ```d arr.each!(a =

Re: Using C header libs with importC

2024-01-09 Thread Renato via Digitalmars-d-learn
On Monday, 8 January 2024 at 23:00:02 UTC, Dennis wrote: On Monday, 8 January 2024 at 21:56:10 UTC, Renato wrote: but I tried exactly that! Which gives a seg fault. Looks like there's a bug with the -H switch: https://issues.dlang.org/show_bug.cgi?id=24326 That's the bug that is affecting m

Re: static array is not a range

2024-01-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 9, 2024 6:22:24 AM MST bachmeier via Digitalmars-d-learn wrote: > On Tuesday, 9 January 2024 at 10:11:35 UTC, Alexibu wrote: > > It looks like isInputRange is false for arrays with fixed > > length by design. > > > > I can do: > > > > ```d > > float[4] arr; > > foreach(x;arr) >

Re: Using C header libs with importC

2024-01-09 Thread jmh530 via Digitalmars-d-learn
On Monday, 8 January 2024 at 21:56:10 UTC, Renato wrote: [snip] Importing .h files from d files isn't supported yet because of a dispute with the lookup priority: https://issues.dlang.org/show_bug.cgi?id=23479 https://issues.dlang.org/show_bug.cgi?id=23547 Ah, too bad. Anyway, I was just pl

Re: static array is not a range

2024-01-09 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 9 January 2024 at 10:11:35 UTC, Alexibu wrote: It looks like isInputRange is false for arrays with fixed length by design. I can do: ```d float[4] arr; foreach(x;arr) writefln("%s",x) ``` but not : ```d arr.each!(a => a.writefln("%s",a)); ``` Is there a good reason for this ? I

Re: static array is not a range

2024-01-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 9, 2024 4:13:23 AM MST Alexibu via Digitalmars-d-learn wrote: > On Tuesday, 9 January 2024 at 10:44:34 UTC, Jonathan M Davis > > wrote: > > How would it even be possible for a static array to be a range? > > It has a fixed length. For a type to work as a range, it needs > > to

Re: static array is not a range

2024-01-09 Thread Alexibu via Digitalmars-d-learn
On Tuesday, 9 January 2024 at 10:44:34 UTC, Jonathan M Davis wrote: How would it even be possible for a static array to be a range? It has a fixed length. For a type to work as a range, it needs to be possible to pop elements off of it, which you can't do with a static array. Input ranges must

Re: Trying to understand map being a template

2024-01-09 Thread NoƩ Falzon via Digitalmars-d-learn
Thank you very much for your answers. The point I had mostly misunderstood was alias template parameters, which make this possible.

Re: static array is not a range

2024-01-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 9, 2024 3:11:35 AM MST Alexibu via Digitalmars-d-learn wrote: > It looks like isInputRange is false for arrays with fixed length > by design. > > I can do: > > ```d > float[4] arr; > foreach(x;arr) > writefln("%s",x) > ``` > but not : > > ```d > arr.each!(a => a.writefln("%