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

2019-12-28 Thread Adam D. Ruppe via D.gnu
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 just a broken example. Pretty sure it should be `w.data` instead of `w[]`.

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

2019-12-28 Thread Iain Buclaw via D.gnu
On Saturday, 28 December 2019 at 03:08:48 UTC, BoraxMan wrote: The example for appender located here, does not compile with GDC. https://dlang.org/library/std/array/appender.html [---snip---] For the line "Writeln(w[]);" GDC reports "error: no [] operator overload for type Appender!string".

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 Mike Parker via D.gnu
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 providing binaries, I should eschew using the GDC compiler and use LDC ins

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