Re: Appender example doesn't work with GDC. GDC bug?

2019-12-28 Thread BoraxMan via D.gnu
On Saturday, 28 December 2019 at 10:41:56 UTC, Mike Parker wrote: On Saturday, 28 December 2019 at 08:25:16 UTC, BoraxMan wrote: The problem is that GDC is part of GCC now, and part of the Fedora installation I'm using. I take it then if I am to start a new project where I may end up providin

Re: Appender example doesn't work with GDC. GDC bug?

2019-12-28 Thread BoraxMan via D.gnu
On Saturday, 28 December 2019 at 03:45:04 UTC, rikki cattermole wrote: On 28/12/2019 4:30 PM, Adam D. Ruppe wrote: On Saturday, 28 December 2019 at 03:08:48 UTC, BoraxMan wrote: For the line "Writeln(w[]);" GDC reports "error: no [] operator overload for type Appender!string". I think that is

Re: GDC bug? duplicates symbols when using mixin and interface

2019-12-27 Thread BoraxMan via D.gnu
On Tuesday, 19 November 2019 at 00:56:33 UTC, Matthias Klumpp wrote: On Tuesday, 29 October 2019 at 13:23:33 UTC, Daniel Kozak wrote: On Thursday, 24 October 2019 at 11:05:21 UTC, Daniel Kozak wrote: ld: c.o: in function `_DT16_D1b1B8__mixin24getSMFZPv': c.d:(.text+0x27): multiple definition o

Appender example doesn't work with GDC. GDC bug?

2019-12-27 Thread BoraxMan via D.gnu
The example for appender located here, does not compile with GDC. https://dlang.org/library/std/array/appender.html void main() { import std.array; import std.stdio: write, writeln, writef, writefln; auto w = appender!string; // pre-allocate space for at least 10 elements (this a

Re: gdc broken by ldc-phobos-devel on Fedora

2019-12-13 Thread BoraxMan via D.gnu
On Thursday, 21 November 2019 at 23:25:34 UTC, Matthias Klumpp wrote: On Wednesday, 20 November 2019 at 21:51:58 UTC, mipri wrote: [...] That's why we explicitly set the LDC include path in Debian: https://salsa.debian.org/d-team/ldc/blob/master/debian/rules#L15 This is a bug in Fedora, you c

Re: Output of std.format for float difference between DMD and GDC

2019-12-04 Thread BoraxMan via D.gnu
On Wednesday, 4 December 2019 at 09:41:58 UTC, BoraxMan wrote: I have noted that DMD and GDC provide a different output to the following line of code. writeln(format("$%-12,3.2f",66543.22)); DMD outputs $66,543.22 GDC outputs $66,543.22 , As you can see, GDC puts a superflous comma at the

Output of std.format for float difference between DMD and GDC

2019-12-04 Thread BoraxMan via D.gnu
I have noted that DMD and GDC provide a different output to the following line of code. writeln(format("$%-12,3.2f",66543.22)); DMD outputs $66,543.22 GDC outputs $66,543.22 , As you can see, GDC puts a superflous comma at the end. The goal of this line is to convert a float to a monetary