Re: [fpc-pascal] Enum scope

2014-03-02 Thread Marcos Douglas
On Fri, Feb 28, 2014 at 4:44 PM, Marcos Douglas wrote: > On Fri, Feb 28, 2014 at 4:22 PM, Sven Barth > wrote: >> On 28.02.2014 19:59, Marcos Douglas wrote: >>> >>> On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner >>> wrote: On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Marcos Douglas
On Fri, Feb 28, 2014 at 4:22 PM, Sven Barth wrote: > On 28.02.2014 19:59, Marcos Douglas wrote: >> >> On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner >> wrote: >>> >>> >>> On Fri, 28 Feb 2014 15:29:03 -0300 >>> Marcos Douglas wrote: >>> [...] These properties are defined in Process u

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Sven Barth
On 28.02.2014 19:59, Marcos Douglas wrote: On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner wrote: On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas wrote: [...] These properties are defined in Process unit. My class is in myprocess unit (or something like that). The problem is: I can not

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Marcos Douglas
On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner wrote: > > On Fri, 28 Feb 2014 15:29:03 -0300 > Marcos Douglas wrote: > > >[...] > > These properties are defined in Process unit. My class is in myprocess unit > > (or something like that). > > The problem is: I can not use the enums values becau

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Mattias Gaertner
On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas wrote: >[...] > These properties are defined in Process unit. My class is in myprocess unit > (or something like that). > The problem is: I can not use the enums values because they don't exists in > my unit (myprocess) but if these enums were def

[fpc-pascal] Enum scope

2014-02-28 Thread Marcos Douglas
Hi, The FPC stable version allow to declare a new type, as private/protected/public, inside a class. So, I propose migrate enums to your "own" classes... why? Well, I have my own TProcess so TMyProcess inherit from TProcess. Perfectly. But I need to use some properties like: Property Options