Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-25 Thread Karoly Balogh (Charlie/SGR)
Hi, On Sat, 25 Jun 2016, Jürgen Hestermann wrote: > This has definitely changed with Free Pascal 3 as my programs suddenly > did not work anymore and I had to add Setlength() all over my code. > Before we could rely on that managed types where always initialized > (well, that's the purpose of man

Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-25 Thread Sven Barth
Am 25.06.2016 13:17 schrieb "Jürgen Hestermann" : > > Am 2016-06-25 um 09:23 schrieb Maciej Izak: > > 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis : > > They were never guaranteed to be initialized to nil. > > Result has special logic for string, dynamic array, method pointer and variant (well

Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-25 Thread Jürgen Hestermann
Am 2016-06-25 um 09:23 schrieb Maciej Izak: > 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis : > They were never guaranteed to be initialized to nil. > Result has special logic for string, dynamic array, method pointer and variant (well documented ;) ): > "For a string, dynamic array, method p

Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-25 Thread Sven Barth
Am 25.06.2016 09:23 schrieb "Maciej Izak" : > > 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis : >> >> They were never guaranteed to be initialized to nil. > > > Result has special logic for string, dynamic array, method pointer and variant (well documented ;) ): > > "For a string, dynamic array, me

Re: [fpc-pascal] reference-counted function results not initialized to nil

2016-06-25 Thread Maciej Izak
2016-06-25 5:19 GMT+02:00 Michalis Kamburelis : > They were never guaranteed to be initialized to nil. > Result has special logic for string, dynamic array, method pointer and variant (well documented ;) ): "For a string, dynamic array, method pointer, or variant result, the effects are the same