Re: Member is @disable this(this), parent uncopyable

2019-03-22 Thread James Blachly via Digitalmars-d-learn
On 3/22/19 9:24 AM, Alex wrote: On Friday, 22 March 2019 at 12:08:39 UTC, James Blachly wrote: First, how do we deal with toString, std.format, writeln, etc. with un-copyable objects, when it is only a member that is uncopyable?  In my case I got around this by creating a pointer and moving the

Re: Member is @disable this(this), parent uncopyable

2019-03-22 Thread Alex via Digitalmars-d-learn
On Friday, 22 March 2019 at 12:08:39 UTC, James Blachly wrote: I have a struct S with member containers.UnrolledList [1]. UnrolledList is @disable this(this), but this unfortunately makes my struct S also un-copyable, which now breaks some of my debugging statements which rely on toString, as w

Member is @disable this(this), parent uncopyable

2019-03-22 Thread James Blachly via Digitalmars-d-learn
I have a struct S with member containers.UnrolledList [1]. UnrolledList is @disable this(this), but this unfortunately makes my struct S also un-copyable, which now breaks some of my debugging statements which rely on toString, as writeln, format, etc. all copy the object. This leaves me in the