Re: [fpc-pascal] Variable Initialization Questions

2016-02-18 Thread Jonas Maebe
Mazola Winstrol wrote: Just to clarify: if i have a record type with a pointer field, this field will always zeroed? No. As mentioned, all global variables are always zeroed. The type doesn't matter. Local variables are never zeroed, except if they are managed types. A pointer is not a manage

Re: [fpc-pascal] Variable Initialization Questions

2016-02-18 Thread Mazola Winstrol
2016-02-17 15:16 GMT-02:00 Jonas Maebe : > Jonas Maebe wrote: > >> 3 - When i declare a pointer as a global variable or as a member of a >>> record, can i assume that its initial value is nil? >>> >> >> No. >> > > Correction: all global variables are always zeroed, so that includes > pointers, rec

Re: [fpc-pascal] [OT] Happy tickets benchmark

2016-02-18 Thread Adrian Veith
I mark this OT because, this group is surly not interested in this and I am not going to answer on this anymore. We have a saying in Germany: "Wer misst, misst Mist". cheers, Adrian. Am 18.02.2016 um 12:15 schrieb Serguei TARASSOV: > On 18/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wr

[fpc-pascal] Lazarus Release 1.6

2016-02-18 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.6. This release was built with FPC 3.0.0. The previous release Lazarus 1.4.4 was built with FPC 2.6.4. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes http://wiki.

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-18 Thread 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 > > database. Suppose that there is records where the column "BirthDate" is > > null. How do i represen

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-18 Thread Marco van de Voort
In our previous episode, Mazola Winstrol said: >end; > > > Suppose that this class represent data of the Person table in a sql > database. Suppose that there is records where the column "BirthDate" is > null. How do i represent a null "BirthDate" in my object? Keep using variants instead of

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-18 Thread Mazola Winstrol
2016-02-18 8:00 GMT-02:00 leledumbo : > > What do you think about it? Is there any other solution? > > There's a reason why > http://www.freepascal.org/docs-html/3.0.0/fcl/db/tfield.isnull.html is > invented > > You didnt understand my point. Design classes coupled with DB framework is not a solut

Re: [fpc-pascal] Happy tickets benchmark

2016-02-18 Thread Serguei TARASSOV
On 18/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Wed, 17 Feb 2016 18:55:29 +0100 From: Adrian Veith To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Happy tickets benchmark I don't want to insist on this, but: if you measure the runtime of your program you resu

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-18 Thread leledumbo
> What do you think about it? Is there any other solution? There's a reason why http://www.freepascal.org/docs-html/3.0.0/fcl/db/tfield.isnull.html is invented -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Primitive-Record-Wrappers-tp5724175p5724180.html Sen

Re: [fpc-pascal] internal error with bitpacked record in i386 with O3

2016-02-18 Thread leledumbo
> Any ideas for a workaround in the meantime? Use individual optimization switches, leaving the broken one. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/internal-error-with-bitpacked-record-in-i386-with-O3-tp5724178p5724179.html Sent from the Free Pascal -