Re: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread Jonas Maebe
On 6 okt 2005, at 19:25, [EMAIL PROTECTED] wrote: Got the point, but there's still something wrong as I've tried the following code but the parser claims for an identifier instead ';' at the third line: (I'm using FPC 2.0.0: could it matter?) Yes, support for MacPas style objects is only

Re: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread fpanasiti
>-- Messaggio Originale -- >From: Jonas Maebe <[EMAIL PROTECTED]> >Subject: Re: [fpc-pascal] Migrating MW objects definitions >Date: Thu, 6 Oct 2005 15:01:56 +0200 >To: FPC-Pascal users discussions >Reply-To: FPC-Pascal users discussions > > > >On 6 okt 2005, at 14:40, [EMAIL PROTECTED] wrote: >

Re: Re[2]: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread Jonas Maebe
On 6 okt 2005, at 17:16, Ivan Shikhalev wrote: You have to use a forward declaration: [skip] AFAIK, this is impossible for static objects (object-types) as record-types too. It is needed to use class-types or pointers to object-types. We are talking about MacPas mode. MacPas objects ar

Re[2]: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread Ivan Shikhalev
-Original Message- From: Jonas Maebe <[EMAIL PROTECTED]> > You have to use a forward declaration: > [skip] AFAIK, this is impossible for static objects (object-types) as record-types too. It is needed to use class-types or pointers to object-types. _

Re: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread Jonas Maebe
On 6 okt 2005, at 14:40, [EMAIL PROTECTED] wrote: I'm trying to migrate MW OO code to FPC. I'm in trouble with this piece of MW code: type myObjectA = object . lObj: myObjectB; ... end; type myObjectB = object ... lObj: myObjectA ... end; Essentially when the compiler tries to deal wit

Re: [fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread Peter Vreman
> I'm trying to migrate MW OO code to FPC. I'm in trouble with this piece of > MW code: > > type > myObjectA = object > . > lObj: myObjectB; > ... > end; > > type > myObjectB = object > ... > lObj: myObjectA > ... > end; > > Essentially when the compiler tries to deal with myObjectA, it says th

[fpc-pascal] Migrating MW objects definitions

2005-10-06 Thread fpanasiti
I'm trying to migrate MW OO code to FPC. I'm in trouble with this piece of MW code: type myObjectA = object . lObj: myObjectB; ... end; type myObjectB = object ... lObj: myObjectA ... end; Essentially when the compiler tries to deal with myObjectA, it says that 'myObjectB is not defined'. A