Perhaps:
var
Buffer: array[0..255] of Byte = Default;
could be supported as shortcut for:
type
TByteBuffer = array[0..255] of Byte;
var
Buffer : TByteBuffer;
begin
Buffer := Default(TByteBuffer);
> -Original Message-
> From: fpc-devel On Behalf
> Of wkitt...@windstream.net
On 08/31/2018 08:50 AM, Michael Van Canneyt wrote:
On Fri, 31 Aug 2018, wkitt...@windstream.net wrote:
On 08/30/2018 03:46 AM, Ondrej Pokorny wrote:
Hello,
is there a way not to get a "Variable xyz does not seem to be initialized"
hint/warning for a fixed-size array?
program Project1;
uses
On Fri, 31 Aug 2018, wkitt...@windstream.net wrote:
On 08/30/2018 03:46 AM, Ondrej Pokorny wrote:
Hello,
is there a way not to get a "Variable xyz does not seem to be initialized"
hint/warning for a fixed-size array?
program Project1;
uses Classes;
var
Buffer: array[0..255] of Byte;
On 08/30/2018 03:46 AM, Ondrej Pokorny wrote:
Hello,
is there a way not to get a "Variable xyz does not seem to be initialized"
hint/warning for a fixed-size array?
program Project1;
uses Classes;
var
Buffer: array[0..255] of Byte;
what about
Buffer: array[0..255] of Byte = [0];
wo
On 31.08.2018 11:24, Michael Van Canneyt wrote:
On Thu, 30 Aug 2018, Ondrej Pokorny wrote:
Hello,
is there a way not to get a "Variable xyz does not seem to be
initialized" hint/warning for a fixed-size array?
program Project1;
uses Classes;
var
Buffer: array[0..255] of Byte;
FS: TFileSt
On Thu, 30 Aug 2018, Ondrej Pokorny wrote:
Hello,
is there a way not to get a "Variable xyz does not seem to be
initialized" hint/warning for a fixed-size array?
program Project1;
uses Classes;
var
Buffer: array[0..255] of Byte;
FS: TFileStream;
begin
// FillByte(Buffer, Length(Buffe
Hello,
is there a way not to get a "Variable xyz does not seem to be
initialized" hint/warning for a fixed-size array?
program Project1;
uses Classes;
var
Buffer: array[0..255] of Byte;
FS: TFileStream;
begin
// FillByte(Buffer, Length(Buffer), 0); // project1.lpr(9,18) Hint:
Variable "