Thread overview
template instance template 'appender' is not defined
May 31, 2015
Assembly
May 31, 2015
Assembly
May 31, 2015
Ali Çehreli
May 31, 2015
Assembly
May 31, 2015
Ali Çehreli
May 31, 2015
anonymous
May 31, 2015
So after a while without write any D code (such a sad time) I'm back. I needed to use appender but it returned a compile error:

> template instance template 'appender' is not defined

I've imported the std.format module but it still doesn't works. What changed? did this moved to somewhere else or what? the documentation still says that it's in the std.format module (http://dlang.org/phobos/std_format.html). I guess I need to read the break changes log since the version I'm using?

My machine: Windows 8.1 and dmd version v2.066.0.
May 31, 2015
I'm aware about format() from std.string but I have some code written which uses appender and I'm a bit affraid that this won't compile anymore
May 31, 2015
On 05/31/2015 02:30 PM, Assembly wrote:
> So after a while without write any D code (such a sad time) I'm back. I
> needed to use appender but it returned a compile error:
>
>> template instance template 'appender' is not defined
>
> I've imported the std.format module but it still doesn't works. What
> changed? did this moved to somewhere else or what? the documentation
> still says that it's in the std.format module
> (http://dlang.org/phobos/std_format.html). I guess I need to read the
> break changes log since the version I'm using?
>
> My machine: Windows 8.1 and dmd version v2.066.0.

appender is in std.array.

Ali

May 31, 2015
On Sunday, 31 May 2015 at 21:32:34 UTC, Ali Çehreli wrote:
> On 05/31/2015 02:30 PM, Assembly wrote:
>> So after a while without write any D code (such a sad time) I'm back. I
>> needed to use appender but it returned a compile error:
>>
>>> template instance template 'appender' is not defined
>>
>> I've imported the std.format module but it still doesn't works. What
>> changed? did this moved to somewhere else or what? the documentation
>> still says that it's in the std.format module
>> (http://dlang.org/phobos/std_format.html). I guess I need to read the
>> break changes log since the version I'm using?
>>
>> My machine: Windows 8.1 and dmd version v2.066.0.
>
> appender is in std.array.
>
> Ali

why that page I've linked use std.format?
May 31, 2015
On 05/31/2015 02:33 PM, Assembly wrote:

>> appender is in std.array.
>>
>> Ali
>
> why that page I've linked use std.format?

Some examples simply use appender. For example, the following appears in some of the examples there:

  import std.array : appender;

Ali

May 31, 2015
On Sunday, 31 May 2015 at 21:33:53 UTC, Assembly wrote:
> why that page I've linked use std.format?

You mean that first example? Simple oversight. It's already fixed in the prerelease version where it imports std.array now: http://dlang.org/phobos-prerelease/std_format.html