Re: [fpc-pascal] Enum scope

2014-03-02 Thread Marcos Douglas
On Fri, Feb 28, 2014 at 4:44 PM, Marcos Douglas m...@delfire.net wrote: On Fri, Feb 28, 2014 at 4:22 PM, Sven Barth pascaldra...@googlemail.com wrote: On 28.02.2014 19:59, Marcos Douglas wrote: On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Fri, 28

[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 :

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Mattias Gaertner
On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas m...@delfire.net 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

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 nc-gaert...@netcologne.de wrote: On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas m...@delfire.net wrote: [...] These properties are defined in Process unit. My class is in myprocess unit (or

Re: [fpc-pascal] Enum scope

2014-02-28 Thread Marcos Douglas
On Fri, Feb 28, 2014 at 4:22 PM, Sven Barth pascaldra...@googlemail.com wrote: On 28.02.2014 19:59, Marcos Douglas wrote: On Fri, Feb 28, 2014 at 3:47 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Fri, 28 Feb 2014 15:29:03 -0300 Marcos Douglas m...@delfire.net wrote: [...]