ref const array error

2012-01-18 Thread jdrewsen
Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(string[] args) { auto e = EncodingScheme.create("utf-8"); auto a = new byte[100]; e.safeDecode(a); } Results in: Error: function std.encoding

Re: ref const array error

2012-01-18 Thread Timon Gehr
On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(string[] args) { auto e = EncodingScheme.create("utf-8"); auto a = new byte[100]; e.safeDecode(a); } Results in

Re: ref const array error

2012-01-18 Thread jdrewsen
On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(string[] args) { auto e = EncodingScheme.crea

Re: ref const array error

2012-01-18 Thread Timon Gehr
On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code. This example outlines the issue: import std.encoding; void main(strin

Re: ref const array error

2012-01-18 Thread jdrewsen
On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped working for some of my existing code. This

Re: ref const array error

2012-01-18 Thread Timon Gehr
On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:31 PM, jdrewsen wrote: Recently the encoding.safeDecode stopped wo

Re: ref const array error

2012-01-19 Thread jdrewsen
On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 UTC, Timon Gehr wrote: On 01/18/2012 08:3

Re: ref const array error

2012-01-19 Thread Timon Gehr
On 01/19/2012 03:47 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 19:43:52 U

Re: ref const array error

2012-01-19 Thread jdrewsen
On Thursday, 19 January 2012 at 17:00:59 UTC, Timon Gehr wrote: On 01/19/2012 03:47 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UTC, Timon Gehr wrote: On 01/18/2012 08:59

Re: ref const array error

2012-01-19 Thread Timon Gehr
On 01/19/2012 09:33 PM, jdrewsen wrote: On Thursday, 19 January 2012 at 17:00:59 UTC, Timon Gehr wrote: On 01/19/2012 03:47 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 23:09:56 UTC, Timon Gehr wrote: On 01/18/2012 10:12 PM, jdrewsen wrote: On Wednesday, 18 January 2012 at 20:13:04 UT