# Qlang Friday Banter

**URL:** <https://quantlab.discourse.group/t/qlang-friday-banter/85>\
**Category:** Qlang Language\
**Created:** [June 28, 2024, 12:24pm UTC](https://quantlab.discourse.group/t/qlang-friday-banter/85 "2024-06-28T12:24:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joakimw](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/joakimw/32/70_2.png) [@joakimw](https://quantlab.discourse.group/u/joakimw)\
**Post date:** [June 28, 2024, 12:24pm UTC](https://quantlab.discourse.group/t/qlang-friday-banter/85/1 "2024-06-28T12:24:08Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![QuantBob](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/quantbob/32/9_2.png) [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Post date:** [June 28, 2024, 12:28pm UTC](https://quantlab.discourse.group/t/qlang-friday-banter/85/2 "2024-06-28T12:28:25Z")

</div>

Tricky! Something with XOR perhaps? Someone else?

---

<div class="post-metadata">

**Author:** ![QuantlabAdmin](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/quantlabadmin/32/10_2.png) [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Post date:** [July 11, 2024, 10:46am UTC](https://quantlab.discourse.group/t/qlang-friday-banter/85/3 "2024-07-11T10:46:16Z")

</div>

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)
