Y
Hacker News
new
|
ask
|
show
|
jobs
by
anon-3988
767 days ago
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!
2 comments
grumpyprole
767 days 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!
link
mgaunard
767 days ago
That doesn't work since you cannot pass that as a single argument to a function.
link
anon-3988
767 days ago
So? make the function accept multiple arguments?
link
mgaunard
765 days ago
There are restrictions on calling conventions; it's not equivalent.
link