Re: Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-14 Thread Jonathan M Davis via Digitalmars-d
On Monday, May 14, 2018 18:29:33 David Nadlinger via Digitalmars-d wrote: > On Monday, 14 May 2018 at 11:53:44 UTC, Nick Treleaven wrote: > > On Monday, 14 May 2018 at 01:20:38 UTC, Jonathan M Davis wrote: > >> Yeah. It's been discussed that it should be illegal to declare > >> a struct or class

Re: Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-14 Thread David Nadlinger via Digitalmars-d
On Monday, 14 May 2018 at 11:53:44 UTC, Nick Treleaven wrote: On Monday, 14 May 2018 at 01:20:38 UTC, Jonathan M Davis wrote: Yeah. It's been discussed that it should be illegal to declare a struct or class member named init, but that change has yet to happen.

Re: Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-14 Thread Nick Treleaven via Digitalmars-d
On Monday, 14 May 2018 at 01:20:38 UTC, Jonathan M Davis wrote: Yeah. It's been discussed that it should be illegal to declare a struct or class member named init, but that change has yet to happen. https://issues.dlang.org/show_bug.cgi?id=7066 Walter and Timon have considered redefinition

Re: Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-13 Thread Jonathan M Davis via Digitalmars-d
On Monday, May 14, 2018 00:04:20 Uknown via Digitalmars-d wrote: > On Sunday, 13 May 2018 at 23:53:58 UTC, Vijay Nayar wrote: > > I encountered a very unexpected error when working on a > > project. It seems that the Appender and RefAppender structs > > created from the std.array.appender()

Re: Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-13 Thread Uknown via Digitalmars-d
On Sunday, 13 May 2018 at 23:53:58 UTC, Vijay Nayar wrote: I encountered a very unexpected error when working on a project. It seems that the Appender and RefAppender structs created from the std.array.appender() method are sensitive to the mere presence of a method called "init()" on the

Bug?: Presence of "init()" Method Causes std.array.appender to Fail to Compile

2018-05-13 Thread Vijay Nayar via Digitalmars-d
I encountered a very unexpected error when working on a project. It seems that the Appender and RefAppender structs created from the std.array.appender() method are sensitive to the mere presence of a method called "init()" on the element type of the array. Here is a minimal example: ```