[fpc-pascal] Re: Inheriting from generics specialized classes

Juha Manninen juha.manninen62 at gmail.com
Thu Nov 24 17:10:01 CET 2011


Now, if I do:

  myV := TMyDerived.Create(False);
  if myV is TFPGObjectList then
    ...

it gives:
 unit1.pas(67,10) Error: Class or Object types "TMyDerived" and
"TFPGObjectList" are not related

In my opinion they are related.

Maybe generics are good only for situations where you don't need to derive
classes or test their inheritance.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111124/5026d0d6/attachment.html>


More information about the fpc-pascal mailing list