Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> +R means "remote" or "retained", i.e. the variable doesn't live on the stack

I think that’s a bad name. Both “remote” (https://en.wikipedia.org/wiki/Remote_procedure_call) and “retained” (https://en.wikipedia.org/wiki/Retained_mode, https://developer.apple.com/documentation/objectivec/nsobjec...) are existing terms in programming with wildly different meaning. What’s wrong with “reference” (https://en.wikipedia.org/wiki/Reference_(computer_science)) ?



The R can stand for anything

It’s just a letter after all

But you should be able to retain/release this variable, and it is not on the stack

I was considering +G for GPU SIMD vectors, but didnt know if I need to




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: