Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Maciej Izak
Notifications events already works in Generics.Collections. ;P ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-19 Thread Michalis Kamburelis
2016-02-18 15:43 GMT+01:00 Mazola Winstrol : > Em 18/02/2016 10:12, "Marco van de Voort" escreveu: >> >> In our previous episode, Mazola Winstrol said: >> >end; >> > >> > >> > Suppose that this class represent data of the Person table in a sql >> >

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Michalis Kamburelis
>> Can you send little bit sample showing this degradation? I can inform him >> to not send the patch because this problem. (I think that him isn't >> registered here in the list yet) > > There's no need for a sample. This degradation is the whole reason why the > non-generic classes TFPObjectList

Re: [fpc-pascal] How to pass an array of bytes directly in a TBytes param?

2016-02-19 Thread silvioprog
On Fri, Feb 19, 2016 at 10:37 PM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > procedure test(const b: array of byte) ?? I know it using an array of bytes, but does it compiles if the parameter is declared as TBytes? I don't know if FPC sopports it, so I'm askig just to check if it

Re: [fpc-pascal] How to pass an array of bytes directly in a TBytes param?

2016-02-19 Thread Dmitry Boyarintsev
procedure test(const b: array of byte) ?? On Friday, February 19, 2016, silvioprog wrote: > Hello, > > Consider the following procedure: > > procedure test(b: TBytes); > begin > end; > > The common way to pass an array of bytes in this procedure is declaring > and

[fpc-pascal] How to pass an array of bytes directly in a TBytes param?

2016-02-19 Thread silvioprog
Hello, Consider the following procedure: procedure test(b: TBytes); begin end; The common way to pass an array of bytes in this procedure is declaring and initializing a TBytes variable. But in Delphi (XE) I just do: test([65, 66, 67]); However, when I try it on FPC (trunk), I get: "Error:

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Graeme Geldenhuys
On 2016-02-19 23:04, Sven Barth wrote: > There's no need for a sample. This degradation is the whole reason why the > non-generic classes TFPObjectList and TFPList exist compared to TObjectList > and TList which do have notifications. I don't use Generics so it doesn't bother me either way. But

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Sven Barth
Am 19.02.2016 20:47 schrieb "silvioprog" : > > On Fri, Feb 19, 2016 at 4:20 PM, Sven Barth wrote: > [...] > >> It doesn't matter whether it is requested over here or on Mantis. I'm against adding notifications to the generic lists, because that

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread silvioprog
On Fri, Feb 19, 2016 at 4:20 PM, Sven Barth wrote: [...] > It doesn't matter whether it is requested over here or on Mantis. I'm > against adding notifications to the generic lists, because that will > degrade their performance. > Can you send little bit sample

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Sven Barth
Am 19.02.2016 14:45 schrieb "silvioprog" : > > On Fri, Feb 19, 2016 at 10:24 AM, Sven Barth wrote: >> >> Am 19.02.2016 12:45 schrieb "silvioprog" : >> > >> > Hello, >> > >> > I have a friend here in Brazil that added the

Re: [fpc-pascal] Happy tickets benchmark

2016-02-19 Thread leledumbo
> Do you have any ideas why this kind of optimization is special? Didn't Florian said that this kind of optimization has no benefit in real world programs and will only increase compilation time? > For info, simple loop test like > > while i < 10 do > i := i + 1; > > shows that

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread silvioprog
On Fri, Feb 19, 2016 at 10:24 AM, Sven Barth wrote: > Am 19.02.2016 12:45 schrieb "silvioprog" : > > > > Hello, > > > > I have a friend here in Brazil that added the `notify` support to the > FGL lists, however he sented it to this Github PR

Re: [fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread Sven Barth
Am 19.02.2016 12:45 schrieb "silvioprog" : > > Hello, > > I have a friend here in Brazil that added the `notify` support to the FGL lists, however he sented it to this Github PR [1]. I'm against that. That would negatively impact the performance of these lists. Regards,

Re: [fpc-pascal] Happy tickets benchmark

2016-02-19 Thread Jonas Maebe
Serguei TARASSOV wrote: For info, simple loop test like while i < 10 do i := i + 1; shows that the FPC code is 2 times slower than Delphi 7 and Borland C 5.5 and 4 times slower that C#. If that's really all there is in your program, then the C# compiler probably replaces

Re: [fpc-pascal] fpc-pascal Digest, Vol 140, Issue 69

2016-02-19 Thread Serguei TARASSOV
On 19/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: Message: 2 Date: Fri, 19 Feb 2016 09:16:15 + From: Lukasz Sokol To:fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Happy tickets benchmark [OT] Std deviation also matters: Std dev shows that

Re: [fpc-pascal] Happy tickets benchmark

2016-02-19 Thread Serguei TARASSOV
On 17/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Tue, 16 Feb 2016 12:48:31 +0100 (CET) From: Michael Van Canneyt To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Happy tickets benchmark I have asked

[fpc-pascal] [PATCH] Addition of OnNotify event on "TFPGObjectList" and "TFPGList" triggered on the insert, delete and extract methods.

2016-02-19 Thread silvioprog
Hello, I have a friend here in Brazil that added the `notify` support to the FGL lists, however he sented it to this Github PR [1]. I'm contacting him to explain how to send it to FPC bugtracker, so you can disconsider this PR at Github. :-) Thank you! [1]

[fpc-pascal] [OT] News-Flash: fpc-other is now on Gmane !

2016-02-19 Thread Lukasz Sokol
Yay http://dir.gmane.org/gmane.comp.compilers.free-pascal.social However has not yet hit the gmane nntp hierarchy (at the time of writing this post); The first post it lists is the Lazarus 1.6 Announcement Date: 2016-02-18 15:28:27 GMT (18 hours and 21 minutes ago) So I could not subscribe