[fpc-devel] Record with dynamic array of same type

2009-12-09 Thread Paul van Helden
Hi All, In the beginning of this year I could compile this: TMyRecord = record Id: Integer; Name: String; ChildRecords: array of TMyRecord; end; ...but now with FPC 2.2.4 I get Error: Illegal expression on line 4 Why the change? (And if there is a good reason, could the error

Re: [fpc-devel] Record with dynamic array of same type

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 15:06, Paul van Helden wrote: In the beginning of this year I could compile this: TMyRecord = record Id: Integer; Name: String; ChildRecords: array of TMyRecord; end; ...but now with FPC 2.2.4 I get Error: Illegal expression on line 4 Why the change? I can't even

Re: [fpc-devel] Record with dynamic array of same type

2009-12-09 Thread Paul Ishenin
Jonas Maebe wrote: TMyRecord = record Id: Integer; Name: String; ChildRecords: array of TMyRecord; end; I guess it should be possible to give an error similar to what Kylix does: tt.pp(9) Error: Type 'TMyRecord' is not yet completely defined D2010 compiles this. Best regards, Paul

Re: [fpc-devel] Record with dynamic array of same type

2009-12-09 Thread Jonas Maebe
On 09 Dec 2009, at 15:28, dmitry boyarintsev wrote: On Wed, Dec 9, 2009 at 5:22 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: I guess it should be possible to give an error similar to what Kylix does: tt.pp(9) Error: Type 'TMyRecord' is not yet completely defined if dynamic arrays

Re: [fpc-devel] Record with dynamic array of same type

2009-12-09 Thread dmitry boyarintsev
On Wed, Dec 9, 2009 at 5:48 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: I don't know why Kylix refuses it. It's true that in theory it could be compilable (and apparently some very old FPC version did and very new Delphi version does compile it). It seems that it's fixed in 2010 only,

Re: [fpc-devel] Record with dynamic array of same type

2009-12-09 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said: I don't know why Kylix refuses it. It's true that in theory it could be compilable (and apparently some very old FPC version did and very new Delphi version does compile it). It seems that it's fixed in 2010 only, because the structure