Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anon-3988
· 2y ago · 0 comments
lol this is like saying C doesn't need structs, you can just declare the variables with a common prefix separately! See ma, product types!
Comments
[–]
grumpyprole
2y ago
Yep, or C doesn't need arrays just use pointers! And C doesn't need strings, just use a pointer to the first byte and assume it's ASCII!
[–]
mgaunard
2y ago
That doesn't work since you cannot pass that as a single argument to a function.
[–]
anon-3988
OP
2y ago
So? make the function accept multiple arguments?
[–]
mgaunard
2y ago
There are restrictions on calling conventions; it's not equivalent.