News for hackers. Stuff that matters.
Re:Ask HN: In C, why is the * operator both reference and ty... by jey on Monday March 22, 2010 @10:26PM (#1211998)
(Mentally replace all ^s with asterisks in the following:)

I don't understand your C code. What is "(int foo^)" supposed to do? It looks almost like a cast, but "int foo" isn't a valid type in C. Maybe "(struct foo^)" or "(int^)"?

Re:Ask HN: In C, why is the * operator both reference and ty... by blintson on Monday March 22, 2010 @10:39PM (#1212023)
I wrote that wrong, my bad. I was copying from a call-by-value example from memory. Changed the following:

  *(int *foo)pointer_param /*changed to*/  *(int*)pointer_param = bar