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

all lvalues are rvalues, so yes, an lvalue is a perfectly valid rvalue.

oh, maybe you meant an rvalue that happens to be a pointer? still makes sense, the pointer is not the same as what it points to.

[In light of Sharlin's comment, I should edit this to say that "lvalues are rvalues" is shorthand for "convertible to", the significance of the difference being what you make of it.]



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

Search: