in reply to Re: Class::Struct question
in thread Class::Struct question
++' binds more tightly than '->'
That's not true. '->' is just above '++' in precedence. ++$x->Counter; is the same as ++($x->Counter);. The problem is that Counter does not return an lvalue. See the other post I'm making in this thread for an example.
|
|---|