ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<dimenus> andrewrk: how do error unions work underneath the hood?
<dimenus> you wrap the simple type in a union with an extra flag?
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
arBmind1 has quit [Quit: Leaving.]
cenomla has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
dimenus has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
dimenus has joined #zig
Guest49045 has joined #zig
dimenus has quit [Client Quit]
cenomla has quit [Quit: cenomla]
arBmind has joined #zig
Guest49045 has quit [Quit: Leaving]
<andrewrk> dimenus, it wraps the simple type by making it a struct with an integer field and the underlying type field
<andrewrk> you can see an example by using --verbose-llvm-ir and looking at the generated data types
dimenus has joined #zig
dimenus has quit [Quit: Leaving]
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
arBmind has quit [Quit: Leaving.]