Re: binary expression...

2016-05-24 Thread captain_fid via Digitalmars-d-learn
On Saturday, 21 May 2016 at 23:06:10 UTC, Ali Çehreli wrote: On 05/21/2016 12:56 PM, captain_fid wrote: >>> [...] fail me >>> [...] value); } >>> [...] have a >> [...] something. > [...] missing/forgetting/misunderstanding here. opCast is for explicit type conversions. However, you seem

Re: binary expression...

2016-05-21 Thread Ali Çehreli via Digitalmars-d-learn
On 05/21/2016 12:56 PM, captain_fid wrote: > On Saturday, 21 May 2016 at 18:33:53 UTC, Anonymouse wrote: >> On Saturday, 21 May 2016 at 18:10:55 UTC, captain_fid wrote: >>> Please forgive if asked before. My google skills seemed to fail me >>> and didn't see any result from search. >>> >>> My

Re: binary expression...

2016-05-21 Thread captain_fid via Digitalmars-d-learn
On Saturday, 21 May 2016 at 18:33:53 UTC, Anonymouse wrote: On Saturday, 21 May 2016 at 18:10:55 UTC, captain_fid wrote: Please forgive if asked before. My google skills seemed to fail me and didn't see any result from search. My problem is simple (though not my understanding LOL). struct D

Re: binary expression...

2016-05-21 Thread captain_fid via Digitalmars-d-learn
On Saturday, 21 May 2016 at 18:31:46 UTC, vit wrote: On Saturday, 21 May 2016 at 18:10:55 UTC, captain_fid wrote: Please forgive if asked before. My google skills seemed to fail me and didn't see any result from search. My problem is simple (though not my understanding LOL). struct D {

Re: binary expression...

2016-05-21 Thread Anonymouse via Digitalmars-d-learn
On Saturday, 21 May 2016 at 18:10:55 UTC, captain_fid wrote: Please forgive if asked before. My google skills seemed to fail me and didn't see any result from search. My problem is simple (though not my understanding LOL). struct D { int value; bool opEquals()(bool value) const {

Re: binary expression...

2016-05-21 Thread vit via Digitalmars-d-learn
On Saturday, 21 May 2016 at 18:10:55 UTC, captain_fid wrote: Please forgive if asked before. My google skills seemed to fail me and didn't see any result from search. My problem is simple (though not my understanding LOL). struct D { int value; bool opEquals()(bool value) const {