Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread silvioprog
On Thu, Nov 8, 2018 at 1:13 AM silvioprog wrote: > On Wed, Nov 7, 2018 at 11:06 PM Ryan Joseph > wrote: > >> I read the old thread and we need to add {$modeswitch arrayoperators} to >> make it work. a += [4] does work now. >> >> Also I found the thread where Sven said he fixed the "Incompatible

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread silvioprog
On Wed, Nov 7, 2018 at 11:06 PM Ryan Joseph wrote: > I read the old thread and we need to add {$modeswitch arrayoperators} to > make it work. a += [4] does work now. > > Also I found the thread where Sven said he fixed the "Incompatible types: > got "Set Of Byte” bug in r39554 ( > https://bugs.fr

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread Ryan Joseph
> On Nov 7, 2018, at 10:12 PM, silvioprog wrote: > > Anyway, it doesn't compile in FPC (tested in both delphi and objfpc modes). > I read the old thread and we need to add {$modeswitch arrayoperators} to make it work. a += [4] does work now. Also I found the thread where Sven said he fixed

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread Ryan Joseph
> On Nov 8, 2018, at 8:35 AM, Ryan Joseph wrote: > > Do you want me to file a new bug report for := operators? I just filed a report just in case. https://bugs.freepascal.org/view.php?id=34526 Regards, Ryan Joseph ___ fpc-pascal maillist

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread silvioprog
On Wed, Nov 7, 2018 at 12:09 PM Ryan Joseph wrote: > > > On Nov 7, 2018, at 9:31 PM, silvioprog wrote: > > > > Yes, it works. But only on Delphi: > > > > That’s too bad, I don’t use Delphi mode. Should be in Objfpc mode also > right? Oops... I meant "in Delphi compiler". ^^' Anyway, it doesn'

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread Ryan Joseph
> On Nov 7, 2018, at 9:31 PM, silvioprog wrote: > > Yes, it works. But only on Delphi: > That’s too bad, I don’t use Delphi mode. Should be in Objfpc mode also right? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] Dynamic array bug

2018-11-07 Thread silvioprog
On Wed, Nov 7, 2018 at 3:39 AM Ryan Joseph wrote: > Good to know. I reported this before and Sven said it was fixed in an > update (after another user had submitted the original patch). > > Are you able to get a := a + [4]; to work? I’m looking Sven’s old message > titled "Feature announcement: D

Re: [fpc-pascal] Dynamic array bug

2018-11-06 Thread Ryan Joseph
> On Nov 7, 2018, at 12:57 PM, silvioprog wrote: > > It seems a bug, because the same code works fine on Delphi by changing > operator from ":=" to its respective name "Implicit”. Good to know. I reported this before and Sven said it was fixed in an update (after another user had submitted t

Re: [fpc-pascal] Dynamic array bug

2018-11-06 Thread silvioprog
Hi Ryan. On Wed, Nov 7, 2018 at 1:13 AM Ryan Joseph wrote: > I finally built the trunk today (version 3.3.1) to try new dynamic array > features and a bug fix Sven did a while ago but I’m still getting errors. > > Did I get the wrong version or something? I thought these things were > working no

[fpc-pascal] Dynamic array bug

2018-11-06 Thread Ryan Joseph
I finally built the trunk today (version 3.3.1) to try new dynamic array features and a bug fix Sven did a while ago but I’m still getting errors. Did I get the wrong version or something? I thought these things were working now. {$mode objfpc} {$modeswitch advancedrecords} program general; t