www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - template instance template 'appender' is not defined

reply "Assembly" <jckj33 gmail.com> writes:
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
next sibling parent "Assembly" <jckj33 gmail.com> writes:
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
prev sibling parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
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
parent reply "Assembly" <jckj33 gmail.com> writes:
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
next sibling parent =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
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
prev sibling parent "anonymous" <anonymous example.com> writes:
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
May 31 2015