Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Sven Barth via fpc-devel
Am 31.10.2017 10:47 schrieb "Michael Van Canneyt" : On Tue, 31 Oct 2017, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: > >> >> With your extended "forward type resolution" this would no longer be >> possible. >> Theoretically it probably can, but multiple passes w

Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Michael Van Canneyt
On Tue, 31 Oct 2017, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: With your extended "forward type resolution" this would no longer be possible. Theoretically it probably can, but multiple passes would be needed. This would aversely affect the compiler speed.

Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Maybe some form of section folding (Type A ... Type B -> Type A, B) can be > done. Oops, I read over that :) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-

Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > With your extended "forward type resolution" this would no longer be possible. > Theoretically it probably can, but multiple passes would be needed. > This would aversely affect the compiler speed. Note that the example shows consecutive typ

Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Mattias Gaertner
On Tue, 31 Oct 2017 09:46:52 +0100 (CET) Michael Van Canneyt wrote: >[...] > With your extended "forward type resolution" this would no longer be possible. > Theoretically it probably can, but multiple passes would be needed. > This would aversely affect the compiler speed. True for such an ext

Re: [fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-31 Thread Michael Van Canneyt
On Mon, 30 Oct 2017, Sandro Cumerlato wrote: Hello, please take a look at this small example: -- program types; type PMyTypeA = ^MyTypeA; PMyTypeB = ^MyTypeB; type MyTypeA = record foo: integer; bar: integer; end; type MyTypeB = record

[fpc-devel] Multiple type sections - Far forward type declarations [feasible feature request?]

2017-10-30 Thread Sandro Cumerlato
Hello, please take a look at this small example: -- program types; type PMyTypeA = ^MyTypeA; PMyTypeB = ^MyTypeB; type MyTypeA = record foo: integer; bar: integer; end; type MyTypeB = record foo: string; bar: string; end;