Re: CI: Why Travis & Circle

2019-11-19 Thread 9il via Digitalmars-d-learn
On Thursday, 14 November 2019 at 13:47:32 UTC, jmh530 wrote: I'm curious what the typical motivation is for using both Travis CI and Circle CI in a project is. Thanks. Circle CI is more flexible but with quite limited free resources.

Re: std.format range with compound format specifiers?

2019-11-19 Thread Petar via Digitalmars-d-learn
On Tuesday, 19 November 2019 at 21:50:08 UTC, Steven Schveighoffer wrote: I know I can format a range with a format string that contains %(%s, %). And this results in a nice comma separated list for each item. But what about an item that has a not-so-cookie-cutter format? Like for instance a

Re: Parsing with dxml

2019-11-19 Thread Joel via Digitalmars-d-learn
On Tuesday, 19 November 2019 at 14:20:39 UTC, Kagamin wrote: On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote: ``` http://www.w3.org/2001/XMLSchema-instance;> ``` You're missing a closing tag. I can store the ASV Bible in an array (I check for if the last book, chapter, and

Re: std.format range with compound format specifiers?

2019-11-19 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/19/19 7:28 PM, Petar Kirov [ZombineDev] wrote: In cases where I have some aggregate data, but I don't feel like writing a custom toString method, I often wrap the data in a Tuple and use its [1] %(inner%) or %(inner%|sep%) format specifiers. Here's an example: import std; void main()

Re: Troubleshooting DUB invocations

2019-11-19 Thread Dukc via Digitalmars-d-learn
On Monday, 18 November 2019 at 19:35:13 UTC, Sebastiaan Koppe wrote: Kinke made some changes in dub to facilitate separate linking for ldc. I am not aware of all the details but the major benefit is that it allows cross compilation with dub and ldc. Yeah, definitely useful if you want to

Re: (SOLVED) Re: linking to shared lib on Windows

2019-11-19 Thread cartland via Digitalmars-d-learn
On Tuesday, 19 November 2019 at 10:10:14 UTC, cartland wrote: On Wednesday, 13 November 2019 at 00:47:11 UTC, cartland wrote: *snip* PS I uninstalled ALL Microsoft build tools and Visual Studios, then reinstalled DMD and LDC.

(SOLVED) Re: linking to shared lib on Windows

2019-11-19 Thread cartland via Digitalmars-d-learn
On Wednesday, 13 November 2019 at 00:47:11 UTC, cartland wrote: I now have the following working on Linux and macOS. *snip* What is the approach on Windows these days (many posts on the matter seem out of date)? The shared C dll was built in MSYS2/MINGW32. *snip* FYI Got it working using

Blog Post #89: Nodes-n-noodles, Part VIII - It's Alive! (2)

2019-11-19 Thread Ron Tarrant via Digitalmars-d-learn
And finally, you get to see a moveable node in action... right here: https://gtkdcoding.com/2019/11/19/0089-nodes-viii-its-alive-2.html Not that this is the end of the Nodes-n-noodles series. Not by a long shot. We'll be back a few weeks from now with noodles connecting nodes and all that

Re: Troubleshooting DUB invocations

2019-11-19 Thread Sebastiaan Koppe via Digitalmars-d-learn
On Tuesday, 19 November 2019 at 12:06:36 UTC, Dukc wrote: On Monday, 18 November 2019 at 19:35:13 UTC, Sebastiaan Koppe wrote: Well yes. But that is just the way things worked up until now, ldc and dub just pick the host machine. Luckily there is the new dub `--arch` argument that can take a

Re: Strange double to uint conversion

2019-11-19 Thread Luiz Silveira via Digitalmars-d-learn
On Monday, 18 November 2019 at 21:54:53 UTC, Steven Schveighoffer wrote: You are expecting floating point to behave as if it is stored as a decimal number. It's not. I was actually asking why 'c' and 'c2' functions behave differently. After mipri's answer I learned that the default floating

Re: Parsing with dxml

2019-11-19 Thread Kagamin via Digitalmars-d-learn
On Monday, 18 November 2019 at 06:44:43 UTC, Joel wrote: ``` http://www.w3.org/2001/XMLSchema-instance;> ``` You're missing a closing tag.

Re: Troubleshooting DUB invocations

2019-11-19 Thread Dukc via Digitalmars-d-learn
On Tuesday, 19 November 2019 at 13:41:32 UTC, Sebastiaan Koppe wrote: A @disabled function stub would serve better, unless I'm missing something. Either way, as long as there is a clear way to debug why it ended up there. Unlike what we have now where you need to dig endlessly. But the

std.format range with compound format specifiers?

2019-11-19 Thread Steven Schveighoffer via Digitalmars-d-learn
I know I can format a range with a format string that contains %(%s, %). And this results in a nice comma separated list for each item. But what about an item that has a not-so-cookie-cutter format? Like for instance a name/value field: struct NV { string name; int value; } If I want to

Re: Why same pointer type for GC and manual memory?

2019-11-19 Thread IGotD- via Digitalmars-d-learn
On Friday, 15 November 2019 at 11:32:07 UTC, Basile B. wrote: TBH I see your point but D is a system programming language. Even if there's a GC you can also do Manual Memory Mangement (sometimes you'll see "MMM "to refer to that in the forums), RC, and you can also write custom machine code