Re: [fpc-pascal] Re: FPC programs in Android without JNI

2011-01-06 Thread Felipe Monteiro de Carvalho
On Tue, Dec 28, 2010 at 7:03 AM, Florian Klämpfl flor...@freepascal.org wrote: What FPC did you use? Just a plain arm compiler with an eabi rtl? Software floating point should be activated too, because most phones have no FPU. I thought 2.3 support now native apps using the android user

[fpc-pascal] Supports() only checks declared interfaces?

2011-01-06 Thread Michalis Kamburelis
Hi, Consider the attached source code. I have a base interface (IA) and a descendant interface (IB). Class TB is declared as TB = class(TInterfacedObject, IB) end; Now I would expect that both Supports(TB, IA) Supports(TB, IB) return true. After all, TB is forced to implement methods of

Re: [fpc-pascal] Supports() only checks declared interfaces?

2011-01-06 Thread Paul Ishenin
06.01.2011 20:14, Michalis Kamburelis wrote: return true. After all, TB is forced to implement methods of both IA and IB, as IB descends from IA. But to my surprise, Supports(TB, IA) returns false. Changing the declaration to TB = class(TInterfacedObject, IA, IB) end; workarounds the

Re: [fpc-pascal] Re: [Lazarus] complex ini like syntax parser

2011-01-06 Thread Gene Buckle
On Wed, 5 Jan 2011, leledumbo wrote: If you want something fast, pyacc and plex distributed with fpc can be an option. But I suggest writing your own since that way you'll have a full control of its features. Is there an fpc version of TIniFile? g. -- Proud owner of F-15C 80-0007

Re: [fpc-pascal] Re: [Lazarus] complex ini like syntax parser

2011-01-06 Thread Howard Page-Clark
On 06/1/11 2:49, Gene Buckle wrote: On Wed, 5 Jan 2011, leledumbo wrote: If you want something fast, pyacc and plex distributed with fpc can be an option. But I suggest writing your own since that way you'll have a full control of its features. Is there an fpc version of TIniFile? g.

Re: [fpc-pascal] Re: [Lazarus] complex ini like syntax parser

2011-01-06 Thread Gene Buckle
On Thu, 6 Jan 2011, Howard Page-Clark wrote: On 06/1/11 2:49, Gene Buckle wrote: On Wed, 5 Jan 2011, leledumbo wrote: If you want something fast, pyacc and plex distributed with fpc can be an option. But I suggest writing your own since that way you'll have a full control of its features.

Re: [fpc-pascal] Supports() only checks declared interfaces?

2011-01-06 Thread Michalis Kamburelis
Paul Ishenin wrote: 06.01.2011 20:14, Michalis Kamburelis wrote: return true. After all, TB is forced to implement methods of both IA and IB, as IB descends from IA. But to my surprise, Supports(TB, IA) returns false. This is expected behavior. It works the same way as in delphi. Thank

Re: [fpc-pascal] Supports() only checks declared interfaces?

2011-01-06 Thread Paul Ishenin
06.01.2011 23:25, Michalis Kamburelis wrote: So, the natural next question: is there some construct similar to the Supports() function, that avoids this problem? That is, something that No. detects that class TB supports both IA and IB interfaces, even though it's declared only as TB =