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
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
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
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
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
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
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.
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