Support attr as r-value