Re: Is array concatenation allowed in the class destructor?

2013-01-02 Thread Maxim Fomin
On Wednesday, 2 January 2013 at 18:09:34 UTC, Ali Çehreli wrote: This issue has come up on the D.learn forum recently. The following program terminates with core.exception.InvalidMemoryOperationError. (Tested with dmd 2.061 and 2.060) string foo() { return "a"; } class Foo { ~this()

Is array concatenation allowed in the class destructor?

2013-01-02 Thread Ali Çehreli
This issue has come up on the D.learn forum recently. The following program terminates with core.exception.InvalidMemoryOperationError. (Tested with dmd 2.061 and 2.060) string foo() { return "a"; } class Foo { ~this() { auto s = foo() ~ "b"; } } void main() { new