Qlang Friday Banter

I’m looking for a more descriptive name for this function, could anyone tell me what it does? :slight_smile:

void func(
	out integer x,
	out integer y)
{
	x = (x|y)&~(x&y);
	y = (x|y)&~(x&y);
	x = (x|y)&~(x&y);
}

I can’t xort it out.

3 Likes

Tricky! Something with XOR perhaps? Someone else?

Someone in the dev department must be reading the Friday banter…
In the yet unreleased version 3.1.4121, there is a new function.

integer xor(integer a, integer b)

3 Likes