Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xcgvgh
· 10y ago · 0 comments
In the second to last paragraph; did you hint that wrapping a char*, used as a string, into a struct, to get type safety?
Comments
[–]
_wmd
10y ago
Yep, you don't even need struct literals for it. Quite a few int types are wrapped this way in the Linux kernel