Re: isCopyable and isAssignable

2016-10-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, October 09, 2016 07:27:38 James Buren via Digitalmars-d-learn wrote: > On Sunday, 9 October 2016 at 07:23:05 UTC, Nordlöw wrote: > > Now that we have isCopyable from > > > > https://github.com/dlang/phobos/pull/4706 > > > > can somebody briefly outline when something fulfills > > `isCop

Re: isCopyable and isAssignable

2016-10-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, October 09, 2016 07:23:05 Nordlöw via Digitalmars-d-learn wrote: > Now that we have isCopyable from > > https://github.com/dlang/phobos/pull/4706 > > can somebody briefly outline when something fulfills `isCopyable` > but not `isAssignable` and vice versa? If it's const or immutable, it

Re: isCopyable and isAssignable

2016-10-09 Thread James Buren via Digitalmars-d-learn
On Sunday, 9 October 2016 at 07:23:05 UTC, Nordlöw wrote: Now that we have isCopyable from https://github.com/dlang/phobos/pull/4706 can somebody briefly outline when something fulfills `isCopyable` but not `isAssignable` and vice versa? I would imagine that an intermediate value, or other l

isCopyable and isAssignable

2016-10-09 Thread Nordlöw via Digitalmars-d-learn
Now that we have isCopyable from https://github.com/dlang/phobos/pull/4706 can somebody briefly outline when something fulfills `isCopyable` but not `isAssignable` and vice versa?