Re: [fpc-devel] type classes

2007-10-21 Thread Mattias Gaertner
On Sun, 21 Oct 2007 14:10:37 +0200 Peter Vreman <[EMAIL PROTECTED]> wrote: > At 14:03 21-10-2007, you wrote: > >On Sun, 21 Oct 2007 13:46:57 +0200 > >Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > Mattias Gaertner schrieb: > > > > Is it possible to use TTranslateStrings = type TStrings? > >

Re: [fpc-devel] type classes

2007-10-21 Thread Micha Nelissen
Peter Vreman wrote: > Also delphi handles things strange. The following code is from > webtbf/tw3930a.pp. The code looks correct, but delphi fails with > "Incompatible types: 'TMyStringList' and 'TStringList'". That makes > typed classes not very usefull unless you override all constructors. Sound

Re: [fpc-devel] type classes

2007-10-21 Thread Peter Vreman
At 14:03 21-10-2007, you wrote: On Sun, 21 Oct 2007 13:46:57 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner schrieb: > > Is it possible to use TTranslateStrings = type TStrings? > > I ask because, the compiler allows it, but stops later with only > > this message: > > lcl/i

Re: [fpc-devel] type classes

2007-10-21 Thread Mattias Gaertner
On Sun, 21 Oct 2007 13:46:57 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner schrieb: > > Is it possible to use TTranslateStrings = type TStrings? > > I ask because, the compiler allows it, but stops later with only > > this message: > > lcl/interfaces/gtk2/interfaces.pas(1,1

Re: [fpc-devel] type classes

2007-10-21 Thread Florian Klaempfl
Florian Klaempfl schrieb: > Mattias Gaertner schrieb: >> Is it possible to use TTranslateStrings = type TStrings? >> I ask because, the compiler allows it, but stops later with only this >> message: >> lcl/interfaces/gtk2/interfaces.pas(1,1) Fatal: Compilation aborted >> >> Question: >> Is it allo

Re: [fpc-devel] type classes

2007-10-21 Thread Florian Klaempfl
Mattias Gaertner schrieb: > Is it possible to use TTranslateStrings = type TStrings? > I ask because, the compiler allows it, but stops later with only this > message: > lcl/interfaces/gtk2/interfaces.pas(1,1) Fatal: Compilation aborted > > Question: > Is it allowed to use > NewClass = type Some

[fpc-devel] type classes

2007-10-21 Thread Mattias Gaertner
Is it possible to use TTranslateStrings = type TStrings? I ask because, the compiler allows it, but stops later with only this message: lcl/interfaces/gtk2/interfaces.pas(1,1) Fatal: Compilation aborted Question: Is it allowed to use NewClass = type SomeClass; ? Mattias