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".

It works with DMD.

Time to file  a bug report with GCC-GDC?

As others have already said, the example reflects the latest release, not the version gdc is based upon.

Luckily, we have been keeping archived docs for quite some time now, so you can just switch and read the correct usage examples.

https://docarchives.dlang.io/v2.076.0/phobos/index.html

Reply via email to