Files

37 lines
1.3 KiB
Markdown

---
title: "@bdiamand I'm not convinced that casting to force disjoint should be allowed, but if it had to be there, something similar to const_cast<>() would do it."
type: archive
source: twitter
source_url: "https://x.com/EricLengyel/status/1202443278735425537"
author: "Eric Lengyel"
handle: EricLengyel
post_id: "1202443278735425537"
date: 2019-12-05
archived: 2026-08-27
draft: false
tags:
- archive
- twitter
- EricLengyel
description: "@bdiamand I'm not convinced that casting to force disjoint should be allowed, but if it had to be there, something similar to const_cast<>() would do it."
in_reply_to: "1202426193338699776"
---
## Source
- URL: https://x.com/EricLengyel/status/1202443278735425537
- Author: Eric Lengyel (@EricLengyel)
- Posted: 2019-12-05 04:23:12
## Thread
**1/** **@EricLengyel** ^1202443278735425537
**@bdiamand**
I'm not convinced that casting to force disjoint should be allowed, but if it had to be there, something similar to const_cast<>() would do it.
I've seen "disjoint" used to describe non-aliased objects in a lot of places, so I went with it. I'm not opposed to other name choices.
Branches: [[archive/threads/EricLengyel/2019-12-05-im-not-convinced-that-casting-to-force-disjoint/2019-12-05-John_Ryland-i-imagine-there-might-be-some-use-cases-for-a]]