Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread Hans-Peter Suter
2017-02-28 21:50 GMT+01:00 Graeme Geldenhuys : > Records - well, I use them like they were defined > in Delphi 7 and earlier. I really don't see the need for Records with > Methods (ie: TP Objects) and such. > Go with modern times! It's the 21st century now ;-)

Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread Benito van der Zander
Hi, with a function call: http://bugs.freepascal.org/view.php?id=30333 I had benchmark runs where it spend more time in the initializing function than doing any calculations Best, Benito On 03/04/2017 06:41 PM, Michael Van Canneyt wrote: On Sat, 4 Mar 2017, nore...@z505.com wrote:

Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread Michael Van Canneyt
On Sat, 4 Mar 2017, nore...@z505.com wrote: On 2017-02-28 14:48, Jonas Maebe wrote: On 28/02/17 21:40, nore...@z505.com wrote: What happens with a stack allocated record? (no new() required, nor dispose() so is the record ever initialized/finalized?) Yes, just like records that contain

Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread noreply
On 2017-02-28 14:48, Jonas Maebe wrote: On 28/02/17 21:40, nore...@z505.com wrote: What happens with a stack allocated record? (no new() required, nor dispose() so is the record ever initialized/finalized?) Yes, just like records that contain e.g. an ansistring field. Jonas do records

Re: [fpc-pascal] Feature announcement: Management Operators

2017-03-04 Thread noreply
On 2017-02-28 14:50, Graeme Geldenhuys wrote: On 2017-02-28 20:40, nore...@z505.com wrote: Sorry, I've been out of touch with what's happening with Records lately in modern pascal/delphi/etc. Don't worry, I'm with you on that one. All I know is that Borland/CodeGear/EMBT broken TP Objects

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Graeme Geldenhuys
On 2017-02-28 20:40, nore...@z505.com wrote: > Sorry, I've been out of touch with what's happening with Records lately > in modern pascal/delphi/etc. Don't worry, I'm with you on that one. All I know is that Borland/CodeGear/EMBT broken TP Objects somewhere in Delphi. Then they decided they want

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Jonas Maebe
On 28/02/17 21:40, nore...@z505.com wrote: What happens with a stack allocated record? (no new() required, nor dispose() so is the record ever initialized/finalized?) Yes, just like records that contain e.g. an ansistring field. Jonas ___

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread noreply
On 2017-02-28 05:20, Maciej Izak wrote: It works correctly in all possible ways with RTL: * New (Initialize) * Dispose (Finalize) What happens with a stack allocated record? (no new() required, nor dispose() so is the record ever initialized/finalized?) Or stack records are forbidden?

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Maciej Izak
2017-02-28 13:19 GMT+01:00 Michael Van Canneyt : > You do now. I took care of that :) Thanks ^^ now I can officially fix bugs related to new feature. Mhm. Great... ;) -- Best regards, Maciej Izak ___ fpc-pascal maillist -

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Michael Van Canneyt
On Tue, 28 Feb 2017, Michael Van Canneyt wrote: On Tue, 28 Feb 2017, Maciej Izak wrote: 2017-02-28 12:28 GMT+01:00 denisgolovan : Thanks a lot. I guess http://bugs.freepascal.org/view.php?id=30687 should be closed now :) I don't have such powers ;) You do

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Michael Van Canneyt
On Tue, 28 Feb 2017, Maciej Izak wrote: 2017-02-28 12:28 GMT+01:00 denisgolovan : Thanks a lot. I guess http://bugs.freepascal.org/view.php?id=30687 should be closed now :) I don't have such powers ;) You do now. I took care of that :) But I set it to fixed for

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Maciej Izak
2017-02-28 12:28 GMT+01:00 denisgolovan : > Thanks a lot. > I guess http://bugs.freepascal.org/view.php?id=30687 should be closed now > :) > I don't have such powers ;) -- Best regards, Maciej Izak ___ fpc-pascal maillist -

Re: [fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread denisgolovan
Thanks a lot.I guess http://bugs.freepascal.org/view.php?id=30687 should be closed now :) -- Regards,Denis Golovan  ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Feature announcement: Management Operators

2017-02-28 Thread Maciej Izak
Hi, I'm pleased to finally announce (again but now officially ;) ) the additional record operators: Initialize, Finalize, AddRef and Copy. Available in latest FPC trunk (r35485): 1. operator Initialize - is called after memory allocation for record (called *after* FPC internal call