Re: RE : [fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-21 Thread Michael Schnell

On 06/20/2011 07:43 PM, Hans-Peter Diettrich wrote:
A C compiler should report an syntax error, but Microsoft C/C++ is 
something different from C and C++ standards :-(



Typical for M$ :(

I just did a small java script program and this did now work correctly 
in InternetExplorer. I found that according to the JavaScript docs I 
found date.Year is based on 1900 and Firefox does work this way, while 
with IE date.Year is based on 0.


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


Re: RE : [fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-20 Thread Michael Schnell

On 06/20/2011 09:55 AM, Ludo Brands wrote:

Prototypes for routines:

1: void test(void *data)
2: void test(voiddata)
IMHO a  in a function prototype definition in C is conceptional 
nonsense.


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


Re: RE : [fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-20 Thread Marco van de Voort
In our previous episode, Ludo Brands said:
 1: void test(void *data)
 2: void test(void data)
 
 The first one does compile in visual studio 2010 and the second does not.

The first is C and C++, the second might be C++ only. ( is also used for
smartpointer related stuff in C++)

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


Re: RE : [fpc-devel] void test( void *data ) to procedure test( var data ); ? is it safe ?

2011-06-20 Thread Hans-Peter Diettrich

Michael Schnell schrieb:

On 06/20/2011 09:55 AM, Ludo Brands wrote:

Prototypes for routines:

1: void test(void *data)
2: void test(voiddata)
IMHO a  in a function prototype definition in C is conceptional 
nonsense.


A C compiler should report an syntax error, but Microsoft C/C++ is 
something different from C and C++ standards :-(


DoDi

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