[fpc-pascal] pointerful

2018-04-22 Thread Mattias Gaertner
Hi, Is this a bug or a feature: type Pint = ^int; int = PInt; ? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pointerful

2018-04-22 Thread Mattias Gaertner
On Sun, 22 Apr 2018 17:00:35 +0200 Mattias Gaertner wrote: > Hi, > > Is this a bug or a feature: > > type > Pint = ^int; > int = PInt; > > ? Note that Delphi gives error "Type 'PInt' is not yet completely defined". Mattias ___ fpc-pascal mailli

Re: [fpc-pascal] pointerful

2018-04-22 Thread Jonas Maebe
On 22/04/18 17:00, Mattias Gaertner wrote: Is this a bug or a feature: type Pint = ^int; int = PInt; ? It's a bug. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pa

Re: [fpc-pascal] pointerful

2018-04-22 Thread Alexander Grotewohl
imagine a linked list.. with nothing but the pointers.. lol On 4/22/2018 1:05 PM, Jonas Maebe wrote: On 22/04/18 17:00, Mattias Gaertner wrote: Is this a bug or a feature: type    Pint = ^int;    int = PInt; ? It's a bug. Jonas ___ fpc-pascal

Re: [fpc-pascal] pointerful

2018-04-22 Thread Bernd Oppolzer
program TESTPT ( OUTPUT ) ; // //$A+ ... enable Assembler output // type PT = -> PT ; var PTEST : PT ; function LQUEUE ( P : PT ) : INTEGER ;    var L : INTEGER ;    begin (* LQUEUE *) L := 0