Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
anon-3988
2y ago
0 comments
Save
Share
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!
0 comments
4 comments · 2 top-level
top
newest
oldest
mgaunard
2y ago
· 2 in thread
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.
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!
j
/
k
navigate · click thread line to collapse