Re: [fpc-devel] Type definition

2006-03-05 Thread Vincent Snijders
Paul Davidson wrote: unit aUnit; interface type aType = ( at_First, at_aaa, at_bbb, at_Last ); aObj = class aVar : aType unit bUnit; interface uses aUnit; type bObj = class( aObj ) unit cUnit interface uses bUnit; I think some Pascal

[fpc-devel] Type definition

2006-03-04 Thread Paul Davidson
If there compelling reason why type definitions cannot be included in class/object definitions? Make it mode FPC to keep folks happy :) Quite often a type is defined in INTERFACE part, but only used within class/object defined in same unit. 1) This means that type is public. This is not

Re: [fpc-devel] Type definition

2006-03-04 Thread Ales Katona
Paul Davidson wrote: If there compelling reason why type definitions cannot be included in class/object definitions? Make it mode FPC to keep folks happy :) Quite often a type is defined in INTERFACE part, but only used within class/object defined in same unit. 1) This means that type is

Re: [fpc-devel] Type definition

2006-03-04 Thread Micha Nelissen
On Sat, 4 Mar 2006 10:24:14 -0500 Paul Davidson [EMAIL PROTECTED] wrote: Quite often a type is defined in INTERFACE part, but only used within class/object defined in same unit. 1) This means that type is public. This is not always good thing in OOese. 2) Unit must be specified in

Re: [fpc-devel] Type definition

2006-03-04 Thread Paul Davidson
unit aUnit; interface type aType = ( at_First, at_aaa, at_bbb, at_Last ); aObj = class aVar : aType unit bUnit; interface uses aUnit; type bObj = class( aObj ) unit cUnit interface uses

Re: [fpc-devel] Type definition

2006-03-04 Thread Peter Vreman
If there compelling reason why type definitions cannot be included in class/object definitions? Make it mode FPC to keep folks happy :) Quite often a type is defined in INTERFACE part, but only used within class/object defined in same unit. 1) This means that type is public. This is not

Re: [fpc-devel] Type definition

2006-03-04 Thread Michael Van Canneyt
On Sat, 4 Mar 2006, Peter Vreman wrote: If there compelling reason why type definitions cannot be included in class/object definitions? Make it mode FPC to keep folks happy :) Quite often a type is defined in INTERFACE part, but only used within class/object defined in same unit.

Re: [fpc-devel] Type definition

2006-03-04 Thread Micha Nelissen
On Sat, 4 Mar 2006 12:57:41 -0500 Paul Davidson [EMAIL PROTECTED] wrote: unit cUnit interface uses bUnit; type cObj = class( bObj ) implementation aVar := at_Last; --- ERROR! The implementation of cUnit requires a USE aUnit; in order to compile