Re: [fpc-pascal] FPC development guiding.

2020-05-04 Thread Tomas Hajny
On 2020-05-04 20:30, popolon...@popolony2k.com.br wrote: Hi PopolonY2k, . . One week ago I received some good news from MSX community, that FPC team is working on Z80 support to FPC (https://wiki.freepascal.org/Z80) and I already built this version (I faced some problems to build but is so

[fpc-pascal] FPC development guiding.

2020-05-04 Thread popolony2k
Hi Free Pascal team. I'm a long term FPC user and ethusiast of Pascal language and it is my preferred language. In my working day I'm used to coding with C/C++ or even Java sometimes but in fact Pascal is my only real "love". One week ago I received some good news from MSX community, that FPC tea

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Sven Barth via fpc-pascal
Am 05.05.2020 um 04:16 schrieb Ryan Joseph via fpc-pascal: On May 4, 2020, at 10:44 PM, Michael Van Canneyt wrote: That is how enums work by default in Pascal. If you don't force scoped enums, you can still scope them. if you use $scopedenums on then you simply force the use instea

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Ryan Joseph via fpc-pascal
> On May 4, 2020, at 10:44 PM, Michael Van Canneyt > wrote: > > That is how enums work by default in Pascal. > > If you don't force scoped enums, you can still scope them. > > if you use > $scopedenums on then you simply force the use instead of having it optional. But the names col

Re: [fpc-pascal] Empty Set in constants in generics

2020-05-04 Thread Ryan Joseph via fpc-pascal
> On May 5, 2020, at 1:03 AM, Sven Barth wrote: > > Yes, they should indeed. > https://bugs.freepascal.org/view.php?id=37020 Found another one yesterday also but it's a crash https://bugs.freepascal.org/view.php?id=37014 I think it's a PPU problem. Regards, Ryan Joseph _

Re: [fpc-pascal] Empty Set in constants in generics

2020-05-04 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 4. Mai 2020, 18:48: > 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

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am Mo., 4. Mai 2020, 18:58: > > > > On May 4, 2020, at 2:12 PM, Michael Van Canneyt > wrote: > > > > Methods can't be keywords either, unless prefixed with &. > > > > It's not safe to change this, that's why a keyword is a keyword: it > supersedes all identifie

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Michael Van Canneyt
On Mon, 4 May 2020, Ryan Joseph via fpc-pascal wrote: On May 4, 2020, at 2:12 PM, Michael Van Canneyt wrote: Methods can't be keywords either, unless prefixed with &. It's not safe to change this, that's why a keyword is a keyword: it supersedes all identifiers, it is part of the langua

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Ryan Joseph via fpc-pascal
> On May 4, 2020, at 2:12 PM, Michael Van Canneyt > wrote: > > Methods can't be keywords either, unless prefixed with &. > > It's not safe to change this, that's why a keyword is a keyword: it > supersedes all identifiers, it is part of the language. Yes but methods can be used without thei

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Michael Van Canneyt
On Mon, 4 May 2020, Ryan Joseph via fpc-pascal wrote: On May 4, 2020, at 12:40 PM, Sven Barth wrote: No, keywords have a higher priority than identifiers, their context doesn't matter (e.g. you can't have a method named "File" either though one could apply the same reasoning here). If yo

Re: [fpc-pascal] Name collisions in scoped enums

2020-05-04 Thread Ryan Joseph via fpc-pascal
> On May 4, 2020, at 12:40 PM, Sven Barth wrote: > > No, keywords have a higher priority than identifiers, their context doesn't > matter (e.g. you can't have a method named "File" either though one could > apply the same reasoning here). If you want to