On Friday 04 November 2005 10:33, Vinzent Hoefler wrote: > On Friday 04 November 2005 09:25, Micha Nelissen wrote: > > Marc Weustink wrote: > > > 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 :-) > > At user level, yes. But as a compiler-writer you'd gotta make it work > somehow.
Yes, "somehow", and not like that ;-) -- Regards, Christian Iversen _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel