[fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?
ludo.brands at free.fr
Mon Jun 20 09:55:20 CEST 2011
An "in depth" discussion of the subject can be found here:
De : fpc-devel-bounces at lists.freepascal.org
[mailto:fpc-devel-bounces at lists.freepascal.org] 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 ?! ;)
More information about the fpc-devel