Using fpc 3.0.4 on Fedora 30.
I've just started using the StrToHostAddr6 function in the sockets unit
to parse IPv6 addresses. I've found a couple of issues with it.
1. Even if address parsing fails, StrToHostAddr6 doesn't return an
all-zero result in the in6_addr return value. The documentat
On Sun, 3 May 2020, Noel Duffy via fpc-pascal wrote:
Using fpc 3.0.4 on Fedora 30.
I've just started using the StrToHostAddr6 function in the sockets unit
to parse IPv6 addresses. I've found a couple of issues with it.
1. Even if address parsing fails, StrToHostAddr6 doesn't return an
all
I have many TCollection's that I need to concat together into one larger
collection for streaming. Since it's just a list I thought I could add the
elements together but it appears TCollection requires that it allocate each
item.
Is there a way to do this without relocating each item of the col
On Sun, 3 May 2020, Ryan Joseph via fpc-pascal wrote:
I have many TCollection's that I need to concat together into one larger
collection for streaming. Since it's just a list I thought I could add the
elements together but it appears TCollection requires that it allocate each
item.
Is the
> On May 3, 2020, at 4:04 PM, Michael Van Canneyt
> wrote:
>
> Just set the Collection property of the items to the concatenated collection
> instance.
>
> Note that this effectively moves the items.
That means I'll need to set it back later right? The original lists are being
kept alive b
On Sun, 3 May 2020, Ryan Joseph via fpc-pascal wrote:
On May 3, 2020, at 4:04 PM, Michael Van Canneyt wrote:
Just set the Collection property of the items to the concatenated collection
instance.
Note that this effectively moves the items.
That means I'll need to set it back later rig
On Sun, 3 May 2020 09:57:46 +0200 (CEST) Michael Van Canneyt
wrote:
On Sun, 3 May 2020, Noel Duffy via fpc-pascal wrote:
The problem is that the StrToHostAddr6 function doesn't set its return
value until the end of the function. If a parse error occurs
mid-function, it zeroes the record in wh
On Sun, 3 May 2020, Noel Duffy via fpc-pascal wrote:
On Sun, 3 May 2020 09:57:46 +0200 (CEST) Michael Van Canneyt
wrote:
On Sun, 3 May 2020, Noel Duffy via fpc-pascal wrote:
The problem is that the StrToHostAddr6 function doesn't set its return
value until the end of the function. If a pa
On 3/05/20 10:28 pm, Michael Van Canneyt wrote:
Yes, please open a bug report. If you attach a small console test
program that
demonstrates the bug (and subsequently the fix) then I will make sure it
ends up in the correct place. If you make sure it exits with exit code 0
if all is
well, an
I've been using scoped enums and noticed that I'm getting collisions with
reserved keywords. Shouldn't these be allowed in scoped enums since they are
required to be referenced using their type name as a prefix?
{$mode objfpc}
program test;
{$scopedenums on}
// error: Syntax error, "identif
Am 04.05.2020 um 05:06 schrieb Ryan Joseph via fpc-pascal:
I've been using scoped enums and noticed that I'm getting collisions with
reserved keywords. Shouldn't these be allowed in scoped enums since they are
required to be referenced using their type name as a prefix?
No, keywords have a hi
Should generics accept empty sets as constants? I think they should and this is
a bug but I wanted to ask first.
{$mode objfpc}
program test;
type
TItem = (A, B, C);
TItems = set of TItem;
generic GType = class
end;
const
TOtherItems = []; // no problems h
12 matches
Mail list logo