Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
brutt
6y ago
0 comments
Share
It's good thing, but it leads to error in code which must talk to C or network, where enum's are not cast in stone.
0 comments
default
newest
oldest
CameronNemo
6y ago
You really should not be casting data structures sent over the network directly to local data structures, unless you are using capnproto or another zero copy protocol that does that safely.
mlindner
6y ago
You can assign any value to a C enum, they literally are just integers.
j
/
k
navigate · click thread line to collapse