Michael Van Canneyt wrote:
On Fri, 22 Jul 2016, Mark Morgan Lloyd wrote:
Michael Van Canneyt wrote:
Or better yet, the official documentation:
http://www.freepascal.org/docs-html/current/rtl/system/default.html
Question please. Using the official documentation as linked to above,
how
On Fri, 22 Jul 2016 08:12:01 +0200, Bo Berglund
wrote:
>>you need to assign it a value, you can assign it default(yourtype)
>>
>
>Is "default" zero?
>i.e.
>
>var
> HD: TSSReadingHeader;
> ..
>begin
> HD := Default(TSSReadingHeader);
>
>And now HD.anything is zero?
I
On Fri, 22 Jul 2016, Mark Morgan Lloyd wrote:
Michael Van Canneyt wrote:
Or better yet, the official documentation:
http://www.freepascal.org/docs-html/current/rtl/system/default.html
Question please. Using the official documentation as linked to above, how
does one find out what
Michael Van Canneyt wrote:
Or better yet, the official documentation:
http://www.freepascal.org/docs-html/current/rtl/system/default.html
Question please. Using the official documentation as linked to above,
how does one find out what versions of the compiler/rtl/fcl support
something?
On Fri, 22 Jul 2016, Mattias Gaertner wrote:
On Fri, 22 Jul 2016 11:03:23 +0200 (CEST)
Michael Van Canneyt wrote:
On Fri, 22 Jul 2016, leledumbo wrote:
OK, I did not know about the default keyword.
Is "default" zero?
On Fri, 22 Jul 2016 11:03:23 +0200 (CEST)
Michael Van Canneyt wrote:
> On Fri, 22 Jul 2016, leledumbo wrote:
>
> >> OK, I did not know about the default keyword.
> >>
> >> Is "default" zero?
> >
> >
On Fri, 22 Jul 2016, leledumbo wrote:
OK, I did not know about the default keyword.
Is "default" zero?
http://wiki.lazarus.freepascal.org/FPC_New_Features_3.0#New_compiler_intrinsic_Default
Or better yet, the official documentation:
> OK, I did not know about the default keyword.
>
> Is "default" zero?
http://wiki.lazarus.freepascal.org/FPC_New_Features_3.0#New_compiler_intrinsic_Default
--
View this message in context:
On Mon, 18 Jul 2016 23:30:47 +0200 (CEST), Michael Van Canneyt
wrote:
>> Are there other commands it does detect as initialization of the
>> variable?
>
>not that I know of.
>
>you need to assign it a value, you can assign it default(yourtype)
>
OK, I did not know about
On Mon, 18 Jul 2016, Bo Berglund wrote:
On Mon, 18 Jul 2016 21:52:37 +0200 (CEST), Michael Van Canneyt
wrote:
Does not the FPC compiler reserve and zero the memory area of such
variables?
No.
Does thios mean that the memory is reserved but not cleared or does it
On Mon, 18 Jul 2016 21:52:37 +0200 (CEST), Michael Van Canneyt
wrote:
>> Does not the FPC compiler reserve and zero the memory area of such
>> variables?
>
>No.
Does thios mean that the memory is reserved but not cleared or does it
mean that memory is not reserved at
On Mon, 18 Jul 2016, Bo Berglund wrote:
I am getting compile hints "Local variable "" does not
seem to be initialized" for a number of variables of packed record
type.
Does not the FPC compiler reserve and zero the memory area of such
variables?
No.
In any case I am using Move() to fill
I am getting compile hints "Local variable "" does not
seem to be initialized" for a number of variables of packed record
type.
Does not the FPC compiler reserve and zero the memory area of such
variables?
In any case I am using Move() to fill the variables with data from a
binary buffer, maybe
13 matches
Mail list logo