Re: isCopyable and isAssignable

2016-10-09 Thread Jonathan M Davis via Digitalmars-d-learn
y outline when something fulfills > > `isCopyable` but not `isAssignable` and vice versa? > > I would imagine that an intermediate value, or other lvalue, may > be copyable, but not assignable. Yes, but isCopyable is checking a type, not a value, so that doesn't enter into it. To check any

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

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

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?