Hacker News new | ask | show | jobs
by 13of40 1474 days ago
> ...Want to open a network socket? Same...

From your compiler's perspective you shouldn't be messing around with all that, you should have an abstraction that lets you say "Pass a by value, b by reference, and c as an out parameter using calling convention X". As long as malloc and opensocket or whatever use the same calling convention, all of the actual byte layout is a one time effort.

1 comments

exercise for the reader