How to use ImportC to import WebGPU header

2024-01-10 Thread JN via Digitalmars-d-learn
I would like to use ImportC to automatically import a C header into my D project. I've been using Dstep so far which works ok, but requires some manual fixes to get the resulting D file to compare and it doesn't let me to just drop the C header file. I created a fresh dub project to try. I

Re: static array is not a range

2024-01-10 Thread Siarhei Siamashka via Digitalmars-d-learn
On Tuesday, 9 January 2024 at 21:30:06 UTC, Alexibu wrote: If each works, I can't see why map filter etc can't work consistently where they only need an input range. ```d auto line = arr.filter!(a > 0).map!(a => a.to!string).joiner("\t").text; ``` Should be fine because each result range is