logoalt Hacker News

Emacs internals: Tagged pointers vs. C++ std:variant and LLVM (Part 3)

25 pointsby thecloudlettoday at 12:41 PM11 commentsview on HN

Comments

tialaramextoday at 2:13 PM

It's not clear to me (and as an unsafe language it's not called out by your compiler if you do something illegal) what the correct way to spell this kind of trick is in C++

I had thought you need the pointer-sized integer types and mustn't do this directly to an actual pointer, but maybe I was wrong (in theory, obviously practice doesn't follow but that's a dangerous game)

show 2 replies
thecloudlettoday at 12:42 PM

Emacs internal part 2 HN link:

https://news.ycombinator.com/item?id=47259961