Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 14:37 schrieb "Maciej Izak" : 2017-10-23 14:33 GMT+02:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > Don't know. Only time will tell. > Did we have new team member? I would like to meet him! ;) Sadly time isn't around that often. :P (and why do you assume that

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Maciej Izak
2017-10-23 14:33 GMT+02:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > Don't know. Only time will tell. > Did we have new team member? I would like to meet him! ;) -- Best regards, Maciej Izak ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 12:55 schrieb "Marcos Douglas B. Santos" : On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal wrote: > Am 23.10.2017 08:29 schrieb "Marco van de Voort" : > > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type aliases are currently not supported in mode Delph

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal wrote: > Am 23.10.2017 08:29 schrieb "Marco van de Voort" : > > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type aliases are currently not supported in mode Delphi. In mode ObjFPC >> they might work, but I'm not sure abo

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Sun, Oct 22, 2017 at 11:53 PM, Ryan Joseph wrote: > > >> On Oct 23, 2017, at 9:14 AM, Marcos Douglas B. Santos >> wrote: >> >> How do the same with generic classes, using mode delphi? > > I think you need to specialize then alias the specialize type. Why do you > want to make an alias for an

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Marcos Douglas B. Santos
On Mon, Oct 23, 2017 at 3:28 AM, Marco van de Voort wrote: > In our previous episode, Sven Barth via fpc-pascal said: >> >> Type aliases are currently not supported in mode Delphi. In mode ObjFPC >> they might work, but I'm not sure about that either... >> >> That said I also don't see the use of

Re: [fpc-pascal] Generic compiler error

2017-10-23 Thread Sven Barth via fpc-pascal
Am 23.10.2017 08:29 schrieb "Marco van de Voort" : In our previous episode, Sven Barth via fpc-pascal said: > > Type aliases are currently not supported in mode Delphi. In mode ObjFPC > they might work, but I'm not sure about that either... > > That said I also don't see the use of type aliases fo

Re: [fpc-pascal] Generic compiler error

2017-10-22 Thread Marco van de Voort
In our previous episode, Sven Barth via fpc-pascal said: > > Type aliases are currently not supported in mode Delphi. In mode ObjFPC > they might work, but I'm not sure about that either... > > That said I also don't see the use of type aliases for generics... How about a simple type = a

Re: [fpc-pascal] Generic compiler error

2017-10-22 Thread Sven Barth via fpc-pascal
Am 23.10.2017 04:14 schrieb "Marcos Douglas B. Santos" : Hi, In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar = TFoo; Type aliases are currently not supported in mode Delphi. In m

Re: [fpc-pascal] Generic compiler error

2017-10-22 Thread Ryan Joseph
> On Oct 23, 2017, at 9:14 AM, Marcos Douglas B. Santos > wrote: > > How do the same with generic classes, using mode delphi? I think you need to specialize then alias the specialize type. Why do you want to make an alias for an untyped generic anyways? Regards, Ryan Joseph __

[fpc-pascal] Generic compiler error

2017-10-22 Thread Marcos Douglas B. Santos
Hi, In Pascal we can do this: type TXStream = TStream; Now, TXStream is just an alias to TStream. How do the same with generic classes, using mode delphi? TBar = TFoo; Compile Project, Target: C:\temp\project1.exe: Exit code 1, Errors: 4 project1.lpr(25,18) Error: Identifier not found "T"