Re: [fpc-devel] type pointer to record before record.

2011-04-30 Thread Skybuck Flying
- Original Message - From: "Florian Klaempfl" To: "FPC developers' list" Sent: Friday, 29 April, 2011 15:57 PM Subject: Re: [fpc-devel] type pointer to record before record. Am 29.04.2011 15:51, schrieb Flávio Etrusco: type TMyRecord = record m

Re: [fpc-devel] type pointer to record before record.

2011-04-30 Thread Skybuck Flying
- Original Message - From: "Marco van de Voort" To: "FPC developers' list" Sent: Friday, 29 April, 2011 10:35 AM Subject: Re: [fpc-devel] type pointer to record before record. In our previous episode, Skybuck Flying said: I would first like to remark

Re: [fpc-devel] type pointer to record before record.

2011-04-29 Thread Alexander Klenin
On Sat, Apr 30, 2011 at 00:57, Florian Klaempfl wrote: > Am 29.04.2011 15:51, schrieb Flávio Etrusco: >>> >>> type >>>  TMyRecord = record >>>      mPrev : ^TMyRecord; // not allowed. >>>  end; >> >> Marco, only if you happen to know from the top of your head, would it >> be possible and without c

Re: [fpc-devel] type pointer to record before record.

2011-04-29 Thread Florian Klaempfl
Am 29.04.2011 15:51, schrieb Flávio Etrusco: type TMyRecord = record mPrev : ^TMyRecord; // not allowed. end; Marco, only if you happen to know from the top of your head, would it be possible and without consequences to allow this kind of construction? (i.e. a pointer reference to its

Re: [fpc-devel] type pointer to record before record.

2011-04-29 Thread Flávio Etrusco
> type > TMyRecord = record > mPrev : ^TMyRecord; // not allowed. > end; Marco, only if you happen to know from the top of your head, would it be possible and without consequences to allow this kind of construction? (i.e. a pointer reference to itself) Best regards, Flávio

Re: [fpc-devel] type pointer to record before record.

2011-04-29 Thread Marco van de Voort
In our previous episode, Skybuck Flying said: > I would first like to remark about this: "This is very newb unfriendly... > newbs might not know this... and will get frustrated by this > weird/odd/non-intuitive language construction". It's in all manuals and books that describe pascal pointers t

[fpc-devel] type pointer to record before record.

2011-04-29 Thread Skybuck Flying
Hello, In free pascal/pascal/delphi it's necessary to declare a pointer to a record, which is to be used inside the record to point to itself, before the record itself without a type directive in between them for example: // correct: type PMyRecord = ^TMyRecord; TMyRecord = record