Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Sven Barth
Am 17.12.2015 13:37 schrieb "Santiago A." : > > El 17/12/2015 a las 11:35, Sven Barth escribió: >> >> Am 17.12.2015 11:18 schrieb "Santiago A." : >> > I can live with no passing them as var parameters, but I thing it is a >> > little cumbersome for setting fields. I will try using pointers. >> >>

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Santiago A.
El 17/12/2015 a las 11:35, Sven Barth escribió: > > Am 17.12.2015 11:18 schrieb "Santiago A." >: > > I can live with no passing them as var parameters, but I thing it is a > > little cumbersome for setting fields. I will try using pointers. > > What do you mean with va

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Sven Barth
Am 17.12.2015 11:18 schrieb "Santiago A." : > I can live with no passing them as var parameters, but I thing it is a > little cumbersome for setting fields. I will try using pointers. What do you mean with var-parameters? Regards, Sven ___ fpc-pascal m

Re: [fpc-pascal] specialize, identifier not found

2015-12-17 Thread Santiago A.
El 16/12/2015 a las 21:01, Sven Barth escribió: > Mode Delphi follows Delphi's syntax, thus no "generic" and > "specialize" keywords. Yes, you are right. I was just looking the objfpc syntax. > > The problem isn't default indexed properties. I guess your TRegAlias > is a record, thus it will be vic

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread Sven Barth
On 16.12.2015 18:09, Santiago A. wrote: El 16/12/2015 a las 17:57, Santiago A. escribió: Which FPC version? Which language mode? Sorry, I have forgotten version. {$mode Delphi} FPC 2.6.4 Same result on Win XP 32bits and Linux Gtk 64bits I'd suggest you to switch to FPC 3.0.0. While not relat

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread Sven Barth
On 16.12.2015 17:57, Santiago A. wrote: El 16/12/2015 a las 17:25, Sven Barth escribió: Am 16.12.2015 16:12 schrieb "Santiago A." <s...@ciberpiula.net>: > > Type > TRegAlias=record >AliasName:string > ... > end; > > TArrayAlias=specialize TArray; // <=

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread leledumbo
> {$mode Delphi} > > I've just tried {$mode objfpc} and compiles type declaration, (Delphi mode > can't understand generics?) Delphi mode follows Delphi generics syntax. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/specialize-identifier-not-found-tp57233

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread Santiago A.
El 16/12/2015 a las 17:57, Santiago A. escribió: > Which FPC version? Which language mode? Sorry, I have forgotten version. {$mode Delphi} FPC 2.6.4 Same result on Win XP 32bits and Linux Gtk 64bits -- Saludos Santiago A. ___ fpc-pascal maillist -

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread Santiago A.
El 16/12/2015 a las 17:25, Sven Barth escribió: > > Am 16.12.2015 16:12 schrieb "Santiago A." >: > > > > Type > > TRegAlias=record > >AliasName:string > > ... > > end; > > > > TArrayAlias=specialize TArray; // < Error here > > > > defconexion.pas(71,1

Re: [fpc-pascal] specialize, identifier not found

2015-12-16 Thread Sven Barth
Am 16.12.2015 16:12 schrieb "Santiago A." : > > Type > TRegAlias=record > ... > end; > > TArrayAlias=specialize TArray; // < Error here > > defconexion.pas(71,14) Error: Identifier not found "specialize" > defconexion.pas(71,25) Error: Error in type definition > defconexion.pas(71,25) Fa

[fpc-pascal] specialize, identifier not found

2015-12-16 Thread Santiago A.
Type TRegAlias=record ... end; TArrayAlias=specialize TArray; // < Error here defconexion.pas(71,14) Error: Identifier not found "specialize" defconexion.pas(71,25) Error: Error in type definition defconexion.pas(71,25) Fatal: Syntax error, ";" expected but "identifier TARRAY" foun