Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Felipe Monteiro de Carvalho
On Wed, Mar 12, 2008 at 7:08 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > What is a 'static' class method ? D7 does not know them. I think it was introduced after D7. C# also seams to have this concept, so I think it's somehow related to .NET on the delphi implementation, but it's also av

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Jonas Maebe
On 12 Mar 2008, at 23:08, Michael Van Canneyt wrote: On Wed, 12 Mar 2008, Felipe Monteiro de Carvalho wrote: On Wed, Mar 12, 2008 at 7:01 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: No. What is the syntax of a static class method then? What is a 'static' class method ? D7 does not

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Jonas Maebe
On 12 Mar 2008, at 22:56, Felipe Monteiro de Carvalho wrote: On Wed, Mar 12, 2008 at 3:43 PM, Jonas Maebe <[EMAIL PROTECTED] > wrote: In theory, declaring a class method as static should do that (as mentioned before either here or on fpc-devel), but it doesn't at this time. Feel free to file a

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Michael Van Canneyt
On Wed, 12 Mar 2008, Felipe Monteiro de Carvalho wrote: > On Wed, Mar 12, 2008 at 7:01 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > No. > > What is the syntax of a static class method then? What is a 'static' class method ? D7 does not know them. Michael.

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Felipe Monteiro de Carvalho
On Wed, Mar 12, 2008 at 7:01 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > No. What is the syntax of a static class method then? > You must not specify the static. Where did you get that from ? The first link here: http://www.google.com/search?hl=en&safe=active&client=firefox-a&rls=org

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Michael Van Canneyt
On Wed, 12 Mar 2008, Felipe Monteiro de Carvalho wrote: > On Wed, Mar 12, 2008 at 3:43 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > In theory, declaring a class method as static should do that (as > > mentioned before either here or on fpc-devel), but it doesn't at this > > time. Feel free

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Felipe Monteiro de Carvalho
On Wed, Mar 12, 2008 at 3:43 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > In theory, declaring a class method as static should do that (as > mentioned before either here or on fpc-devel), but it doesn't at this > time. Feel free to file a bug. What is the syntax of a class method on FPC? I did

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Felipe Monteiro de Carvalho
On Wed, Mar 12, 2008 at 3:56 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > Aren't you going to have problems with memory leaks with these wrapper > instances? Suppose you create an instance in Pascal code, then pass > the (wrapped) Objective-C class instance to an Objective-C method > which rele

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Jonas Maebe
On 12 Mar 2008, at 18:44, Felipe Monteiro de Carvalho wrote: Ummm ... I'd like to keep compiler and sintax changes to absolute minimal. Ideally zero like now =P and I'm very close of having a fully object-oriented interface to objective-c. Aren't you going to have problems with memory leaks w

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Jonas Maebe
On 12 Mar 2008, at 18:44, Felipe Monteiro de Carvalho wrote: On Wed, Mar 12, 2008 at 6:10 AM, Jonas Maebe <[EMAIL PROTECTED] > wrote: To be able to interface Objective-C code in an OOP way in FPC, support for some kind of Objective Pascal dialect has to be added to the compiler. Everything wil

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Felipe Monteiro de Carvalho
On Wed, Mar 12, 2008 at 6:10 AM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > To be able to interface > Objective-C code in an OOP way in FPC, support for some kind of > Objective Pascal dialect has to be added to the compiler. Everything > will probably break at one time or another. Ummm ... I'd

Re: [fpc-pascal] Layout of class method

2008-03-12 Thread Jonas Maebe
On 12 Mar 2008, at 01:41, Felipe Monteiro de Carvalho wrote: I'd just like to confirm. Considering the following class method: {$mode delphi} interface type TMyController = class(NSObject) public class function applicationShouldTerminateAfterLastWindowClosed(param1: objc.id; param2