On 17/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote:
Date: Tue, 16 Feb 2016 14:44:42 +0100
From: Adrian Veith
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] Happy tickets benchmark
small remark for your testing series:
AVG makes no sense, you should test against MIN -
Hello List,
After googled and searching in the documentation,
http://free-pascal-general.1045716.n5.nabble.com/does-Advanced-Record-constructor-automatically-zero-all-the-memory-space-of-that-record-td5716755.html
http://www.freepascal.org/docs-html/ref/refse23.html
i still have doubts about var
Mazola Winstrol wrote:
1 - Does the compiler automatically initialize all class fields when a
new instance is created?
They're called instance fields, and yes, they are zeroed. Class fields
are fields that that are unique per class type, rather than per instance.
2 - Does the compiler initi
2016-02-17 14:58 GMT-02:00 Jonas Maebe :
> Mazola Winstrol wrote:
>
>> 1 - Does the compiler automatically initialize all class fields when a
>> new instance is created?
>>
>
> They're called instance fields, and yes, they are zeroed. Class fields are
> fields that that are unique per class type,
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, records and hence also pointers in records (if those records
themse
Hello list,
In some situations, would be very interesting to determine whether the
value of a primitive variable is initialized or not. For example, fields in
database records can contain null values. By implementing an ORM, it would
be interesting to represent these null values in the properties
On 02/17/2016 06:28 AM, Serguei TARASSOV wrote:
On 17/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote:
small remark for your testing series: AVG makes no sense, you should test
against MIN - why ? the measured results are contaminated by other
activities on your system, so the fast
I don't want to insist on this, but: if you measure the runtime of your
program you result = runtime + error. If you measure a series against
MIN you measure MIN(result) = runtime + MIN(error) which delivers the
best value for runtime.
Am 17.02.2016 um 12:28 schrieb Serguei TARASSOV:
> On 17/02/20
(I know this is more suited for fpc-devel, but every email I sent to that
list gets bounced back to me. My apologies.)
I logged this mantis issue:
http://mantis.freepascal.org/view.php?id=29669
Any ideas for a workaround in the meantime? I'm hoping to get a whole bunch
of production code buildin