Return a const structure by reference.

2013-10-15 Thread Agustin
I'm having trouble trying to return a const reference of a structure. public struct Structure { } public class A { private Structure structure; this(Structure structure) { this.structure = structure; } public ref const Structure getStructure() const {

Re: Return a const structure by reference.

2013-10-15 Thread Ali Çehreli
On 10/15/2013 09:28 PM, Agustin wrote: I'm having trouble trying to return a const reference of a structure. public struct Structure { } public class A { private Structure structure; this(Structure structure) { this.structure = structure; } public