Re: [fpc-pascal] Compiling android example

2011-04-08 Thread Felipe Monteiro de Carvalho
It might be useful to know that I rebased my trunk to a new project, systeminfo4android which is a simple program that I wrote to help me at work. It calculates the reported screen diameter in inches, as well as all data from DisplayMetrics. I documented this here: http://wiki.lazarus.freepascal.o

Re: [fpc-pascal] "is" for class references

2011-04-08 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: Is there an equivalent to "is" for class references? yes. classref.inheritsfrom(TClassType) Thanks, works like a charm :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, no

Re: [fpc-pascal] "is" for class references

2011-04-08 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > Is there an equivalent to "is" for class references? yes. classref.inheritsfrom(TClassType) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-p

[fpc-pascal] "is" for class references

2011-04-08 Thread Mark Morgan Lloyd
Is there an equivalent to "is" for class references? typeCNodeContent= class of TNodeContent; procedure walkContent(node: CNodeContent); begin Write(PadRight(OidToStr(node.GetOid), 32)); if node is TScalar then Write(' s'); Compilation fails at that point: test2.pas(46,

Re: [fpc-pascal] Inherit interface from 2 interfaces

2011-04-08 Thread michael . vancanneyt
On Fri, 8 Apr 2011, Zaher Dirkey wrote: 2011/4/7 Flávio Etrusco On Wed, Apr 6, 2011 at 1:37 PM, Zaher Dirkey wrote: Can i do that? type IIntf3 = interface(IIntf11, IIntf2) end; Thanks in advance. -- Zaher Dirkey For Corba interfaces, yes. Not for COM interfaces. http://www.fr

Re: [fpc-pascal] Inherit interface from 2 interfaces

2011-04-08 Thread Zaher Dirkey
2011/4/7 Flávio Etrusco > On Wed, Apr 6, 2011 at 1:37 PM, Zaher Dirkey wrote: > > Can i do that? > > type > > IIntf3 = interface(IIntf11, IIntf2) > > > > end; > > > > Thanks in advance. > > -- > > Zaher Dirkey > > > > For Corba interfaces, yes. Not for COM interfaces. > http://www.freep