On 1/13/2014 3:37 AM, Erik van Velzen wrote:
On Sunday, 12 January 2014 at 18:28:38 UTC, Meta wrote:
It looks like your opBinary on strings is an attempt at globally
overriding the XOR operator. I'm almost 100% sure this won't work in
D. All operator overloads have to be part of a class or stru
On Sunday, 12 January 2014 at 19:27:18 UTC, Meta wrote:
On Sunday, 12 January 2014 at 19:22:57 UTC, Ali Çehreli wrote:
2) Array-wise operations does not support the following syntax
auto three = one[] ^ two[];
Is this a bug or intended?
intended. It would require an implicit allocation,
On Sunday, 12 January 2014 at 19:22:57 UTC, Ali Çehreli wrote:
2) Array-wise operations does not support the following syntax
auto three = one[] ^ two[];
Is this a bug or intended?
On Sunday, 12 January 2014 at 19:12:13 UTC, TheFlyingFiddle wrote:
On Sunday, 12 January 2014 at 18:37:40 UTC, Erik van Velzen
wrote:
On Sunday, 12 January 2014 at 18:28:38 UTC, Meta wrote:
It looks like your opBinary on strings is an attempt at
globally overriding the XOR operator. I'm almos
On 01/12/2014 10:21 AM, Erik van Velzen wrote:
I would like to do this:
string one = x"315c4eeaa8b5f8aaf9174145bf43e1784b";
string two = x"c29398f5f3251a0d47e503c66e935de81230b59b7a";
string three = one ^ two;
The closests I've been able to get is:
string three = xor(one,
On Sunday, 12 January 2014 at 18:37:40 UTC, Erik van Velzen wrote:
On Sunday, 12 January 2014 at 18:28:38 UTC, Meta wrote:
It looks like your opBinary on strings is an attempt at
globally overriding the XOR operator. I'm almost 100% sure
this won't work in D. All operator overloads have to be
On Sunday, 12 January 2014 at 18:37:40 UTC, Erik van Velzen wrote:
On Sunday, 12 January 2014 at 18:28:38 UTC, Meta wrote:
It looks like your opBinary on strings is an attempt at
globally overriding the XOR operator. I'm almost 100% sure
this won't work in D. All operator overloads have to be
On Sunday, 12 January 2014 at 18:28:38 UTC, Meta wrote:
It looks like your opBinary on strings is an attempt at
globally overriding the XOR operator. I'm almost 100% sure this
won't work in D. All operator overloads have to be part of a
class or struct.
How would I do that without rewriting
On Sunday, 12 January 2014 at 18:21:06 UTC, Erik van Velzen wrote:
I would like to do this:
string one = x"315c4eeaa8b5f8aaf9174145bf43e1784b";
string two = x"c29398f5f3251a0d47e503c66e935de81230b59b7a";
string three = one ^ two;
The closests I've been able to get is:
string t