Re: [fpc-devel] Inc() and Dec() on properties

2014-01-07 Thread Michael Schnell
While this behavior is absolutely logical, as a normal procedure could not use a property in that way. OTOH just as a courtsey, the _builtin_ procedures inc() and dec() could be implemented in a way that allows for doing it. -Michael ___ fpc-devel

[fpc-devel] Inc() and Dec() on properties

2013-12-20 Thread Mark Morgan Lloyd
A question if I may, leading on from http://bugs.freepascal.org/view.php?id=25440 - inc(x)/dec(x) with range checking enabled are optimized with taking address of x. Is that why Inc() and Dec() can't be applied to properties, or are there other issues? They were using untyped address,

Re: [fpc-devel] Inc() and Dec() on properties

2013-12-20 Thread Sven Barth
On 20.12.2013 22:02, Mark Morgan Lloyd wrote: A question if I may, leading on from http://bugs.freepascal.org/view.php?id=25440 - inc(x)/dec(x) with range checking enabled are optimized with taking address of x. Is that why Inc() and Dec() can't be applied to properties, or are there other

Re: [fpc-devel] Inc() and Dec() on properties

2013-12-20 Thread Mark Morgan Lloyd
Sven Barth wrote: On 20.12.2013 22:02, Mark Morgan Lloyd wrote: A question if I may, leading on from http://bugs.freepascal.org/view.php?id=25440 - inc(x)/dec(x) with range checking enabled are optimized with taking address of x. Is that why Inc() and Dec() can't be applied to properties,

Re: [fpc-devel] Inc() and Dec() on properties

2013-12-20 Thread Sergei Gorelkin
On 21.12.2013 02:11, Mark Morgan Lloyd wrote: Sven Barth wrote: On 20.12.2013 22:02, Mark Morgan Lloyd wrote: A question if I may, leading on from http://bugs.freepascal.org/view.php?id=25440 - inc(x)/dec(x) with range checking enabled are optimized with taking address of x. Is that why