Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-30 Thread Maciej Izak
2015-07-31 8:37 GMT+02:00 Michael Van Canneyt : > Attributes: > > http://svn.freepascal.org/svn/fpc/branches/joost/classattributes/ > > Looks like "dead branch"... > New RTTI (I think): > http://svn.freepascal.org/svn/fpc/branches/interfacertti/ IIRC this is bugfix for mORMot framework related

Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-30 Thread Michael Van Canneyt
On Thu, 30 Jul 2015, Joao Morais wrote: On 24/07/15 04:10, Michael Van Canneyt wrote: Attributes and RTTI will come as soon as 3.0 are out of the door. Hello Michael, merging to trunk I presume. Provided that attributes and new rtti are two of the best things since the discover of the fi

Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-30 Thread Joao Morais
On 24/07/15 04:10, Michael Van Canneyt wrote: Attributes and RTTI will come as soon as 3.0 are out of the door. Hello Michael, merging to trunk I presume. Provided that attributes and new rtti are two of the best things since the discover of the fire and the wheel, is there some branch I co

Re: [fpc-pascal] Calling overriden method using TMethod

2015-07-30 Thread Joao Morais
On 30/07/15 15:05, Sven Barth wrote: Am 30.07.2015 19:00 schrieb "Joao Morais" >: > > tbar2 inherits from tbar1 and 'go' is a virtual method. v1.go calls the tbar2 implementation as expected but tm(m1)() does call tbar1.go. As expected. Is there a nice and safe

Re: [fpc-pascal] Calling overriden method using TMethod

2015-07-30 Thread Sven Barth
Am 30.07.2015 19:00 schrieb "Joao Morais" : > > tbar2 inherits from tbar1 and 'go' is a virtual method. v1.go calls the tbar2 implementation as expected but tm(m1)() does call tbar1.go. As expected. Is there a nice and safe way to use v1 instance's VMT in order to call the inherited method? In the

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Serguei TARASSOV
On 30/07/2015 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: Date: Wed, 29 Jul 2015 17:05:03 +0200 From: Michael Schnell To:fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Counting semaphore for free pascal Message-ID:<55b8eb9f.6060...@lumino.de> Content-Type: text/plain; charset

[fpc-pascal] Calling overriden method using TMethod

2015-07-30 Thread Joao Morais
Hello, in the following sample: ==>>>== ... type tm = procedure of object; var v1: tbar1; m1: tmethod; begin v1 := tbar2.create; try v1.go; m1.code:=@tbar1.go; m1.data:=v1; tm(m1)(); finally freeandnil(v1); end; end. ==<<<== tbar2 inherits from

Re: [fpc-pascal] Interface syntax: Is possible don't use specialize in mode objfpc?

2015-07-30 Thread silvioprog
On Fri, Jul 24, 2015 at 4:10 AM, Michael Van Canneyt wrote: > > On Fri, 24 Jul 2015, silvioprog wrote: >> >> After that, we can still see about new modes. I'm not arguing about that. >>> >>> Michael. >>> >> >> Are you talking about compatibility to Delphi 5/7? >> >> There are already many new grea

Re: [fpc-pascal] *SPAM* Re: Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/30/2015 02:21 PM, Sven Barth wrote: Event (binary Semaphore) and CriticalSection (process local Mutex). I see. Thanks, -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Sven Barth
Am 30.07.2015 11:29 schrieb "Michael Schnell" : > > On 07/30/2015 10:50 AM, Michael Van Canneyt wrote: >> >> CriticalSection and TEvent derive their names from Windows OS calls, adopted by Delphi and hence by FPC. >> There is nothing FPC specific about it. >> > OK. Thanks for the clarification. > >

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/30/2015 10:50 AM, Michael Van Canneyt wrote: CriticalSection and TEvent derive their names from Windows OS calls, adopted by Delphi and hence by FPC. There is nothing FPC specific about it. OK. Thanks for the clarification. I understand that the computer science names ate Mutex and Sema

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Michael Van Canneyt
On Thu, 30 Jul 2015, Michael Schnell wrote: On 07/29/2015 01:06 PM, Michael Schnell wrote: On 07/29/2015 12:35 PM, Serguei TARASSOV wrote: critical sections are not. Hmmm I suppose this is "fpc speak". Thinking about this I feel that "CriticalSection" (the official name of this function

Re: [fpc-pascal] Counting semaphore for free pascal

2015-07-30 Thread Michael Schnell
On 07/29/2015 01:06 PM, Michael Schnell wrote: On 07/29/2015 12:35 PM, Serguei TARASSOV wrote: critical sections are not. Hmmm I suppose this is "fpc speak". Thinking about this I feel that "CriticalSection" (the official name of this functionality is Mutex) and "Event" is "fpc speak". "Eve