Re: [fpc-pascal] Compiler error passing a Property as a parameter

2014-06-10 Thread Sven Barth
Am 10.06.2014 09:24 schrieb "Michael Schnell" : > > On 06/08/2014 09:50 PM, Graeme Geldenhuys wrote: >> >> You can't pass them directly as a var parameter, > > > I feel that generally passing a property as a var parameter is not possible, > > It could be possible for built-in functions (such as i

Re: [fpc-pascal] Compiler error passing a Property as a parameter

2014-06-10 Thread Michael Schnell
On 06/08/2014 09:50 PM, Graeme Geldenhuys wrote: You can't pass them directly as a var parameter, I feel that generally passing a property as a var parameter is not possible, It could be possible for built-in functions (such as inc() ) or for properties that don't have a set or get functi

Re: [fpc-pascal] Compiler error passing a Property as a parameter

2014-06-09 Thread Vincent Snijders
2014-06-08 21:50 GMT+02:00 Graeme Geldenhuys : > Hi, > > I think it was FPC 2.6.0 that changed the language rules about > Properties. You can't pass them directly as a var parameter, can't > assign to a property of a property etc. > > Anyway, somebody recently asked my why this was implemented, a

Re: [fpc-pascal] Compiler error passing a Property as a parameter

2014-06-08 Thread Tomas Hajny
On Sun, June 8, 2014 21:50, Graeme Geldenhuys wrote: Hi Graeme, > I think it was FPC 2.6.0 that changed the language rules about > Properties. You can't pass them directly as a var parameter, can't > assign to a property of a property etc. > > Anyway, somebody recently asked my why this was impl

[fpc-pascal] Compiler error passing a Property as a parameter

2014-06-08 Thread Graeme Geldenhuys
Hi, I think it was FPC 2.6.0 that changed the language rules about Properties. You can't pass them directly as a var parameter, can't assign to a property of a property etc. Anyway, somebody recently asked my why this was implemented, and I can't actually remember the exact rational behind the FP