ok, so if I have
   procedure bar(f: IntfFoo);

I can do
   bar(SomeClassInstanceThatImplementsFoo);

makes sense, the interface can be gotten at the time of calling.

Now if I have

  generic MyGen<    P: IntfFoo >

then I can also do
  specialize MyGen<SomeClassInstanceThatImplementsFoo>

is that indented?

Because now if I have in MyGen

   FMyField: P;

and I try to assign an interface to it... Then that can't work.

Of course there are cases where it is the other way round, and may be useful.

------------------
Just trying to find out if that is a feature, or an issue that will eventually be changed?

_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to