Micha Nelissen wrote:
Marc Weustink wrote:

Peter Vreman wrote:

How will Delphi handle the following case with overloads and different types:


If the generic is "pre"compiled (which is maybe necesary if you need access to privates) then I fear some runtime logic has to be added to call the correct procedure. IE. something like

  case TypeInfo(Data) of
    StringType: Show(Data);
    IntegerType: Show(Data);
  end;


The whole idea of Generics is to avoid this :-)

I mean generated by the compiler, not by the "user"

Marc

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to