How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Ki Rill via Digitalmars-d-learn
How do I set up a D and SFML project using the `bindbc-sfml` package? I tried following the instructions, it builds successfully, but fails to load the SFML library at runtime. In particular, `loadSFML, loadSFMLGraphics, loadSFMLXXX` fails. Here is [link](https://github.com/rillki/d-sfml-pro

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 8 April 2023 at 11:31:40 UTC, Ki Rill wrote: How do I set up a D and SFML project using the `bindbc-sfml` package? I tried following the instructions, it builds successfully, but fails to load the SFML library at runtime. In particular, `loadSFML, loadSFMLGraphics, loadSFMLXXX`

Re: How to setup D with SFML? (using bindbc-sfml)

2023-04-08 Thread Salih Dincer via Digitalmars-d-learn
On Saturday, 8 April 2023 at 23:40:32 UTC, Mike Parker wrote: Not without error messages. The first thing you should do is use the error API in bindbc.loader to print them out. That should tell you what the problem is. I installed it on my Linux system without using a loader and with static S

How come a count of a range becomes 0 before a foreach?

2023-04-08 Thread ikelaiah via Digitalmars-d-learn
Hi, I've written a file that converts Rmd (R Markdown file), to a MarkDown file. All works well if and only if line 73 is commented out. I marked line 72 in the code below. If line 73 is not commented out, `foreach` does not execute as the `rmdFiles.walklength` in line 82 becomes `0`. How

Re: How come a count of a range becomes 0 before a foreach?

2023-04-08 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/8/23 9:38 PM, ikelaiah wrote: // Get files in specified inputPath variable with a specific extension     auto rmdFiles = file.dirEntries(inputPath, file.SpanMode.shallow)     .filter!(f => f.isFile)     .filter!(f => f.name.endsWith(fileEndsWith));     // LINE 72 -- WARNING -- I

Re: How come a count of a range becomes 0 before a foreach?

2023-04-08 Thread ikelaiah via Digitalmars-d-learn
On Sunday, 9 April 2023 at 03:39:52 UTC, Steven Schveighoffer wrote: On 4/8/23 9:38 PM, ikelaiah wrote: // Get files in specified inputPath variable with a specific extension     auto rmdFiles = file.dirEntries(inputPath, file.SpanMode.shallow)     .filter!(f => f.isFile)     .filte