An "in depth" discussion of the subject can be found here: http://www.velocityreviews.com/forums/t750137-test-void-data-vs-test-void-an d-data.html
-----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Skybuck Flying Envoyé : samedi 18 juin 2011 22:44 À : FPC developers' list Objet : [fpc-devel] void test( void *data ) to procedure test( var data );? is it safe ? Prototypes for routines: 1: void test(void *data) 2: void test(void &data) The first one does compile in visual studio 2010 and the second does not. They both seem conceptually the same, like untyped variable data in Delphi, yet the first one is allowed and the second is not allowed. Isn't that strange ?! ;) :) Seems like case 2 is not yet implemented, either in the c/c++ language rules or in the compiler ?! ;) Bye, Skybuck. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
