Win32 Port of Safari

David Faure dfaure at klaralvdalens-datakonsult.se
Thu Jan 9 17:19:40 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 09 January 2003 18:15, Stephan Johach wrote:
> Hi!
> Am Donnerstag, 9. Januar 2003 00:05 schrieb Alan Gutierrez:
> > There are some C++ compiler issues. It looks like VC++ found some typos.
> 
> If you are using an MS C++ compiler older than VisualStudio.NET than be
> aware that it's not very standard compliant in some cases.
> 
> Example
> 
> for (int i=0; i< 10; i++)
> 	puts("Blah\n");
> 
> printf("%d", i);
> 
> VisualStudio prior to VS.NET compiles without even a warning. The variable
> i is handled as if it was declared before the loop.
> 
> int i;
> for ( i=0; i<10; i++)
> ...
> 
> The standard says i is only valid in the scope of the for construct, so i is 
> not declared for the printf().

gcc warns about this very loudly too. Well, loudly if you read warnings :)

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+Ha8s72KcVAmwbhARAlL0AJ4xbVwRVG4PaRXWYrOaPpKie6GP2gCgml9R
+4K/O3Y/ojkxWxSmJddu7Pw=
=BWMo
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list