News for hackers. Stuff that matters.
Re:Facil.io: A micro-framework for C web applications by tom_mellior on Sunday January 27, 2019 @10:12AM (#19011966)
> I would pass by reference.

Interesting. I expected taking the address of a struct literal to be illegal, but GCC and Clang both accept it. It does make sense, I guess.

But may I ask why you would pass it by reference? With old ABIs, the struct would be passed on the stack (i.e., by reference) anyway, and with more recent ones, a small prefix would be in registers but the rest passed by reference as well. So why bother manually cluttering the code?

There are no comments on this comment yet.