[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Win32 Port of Safari
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-01-09 17:19:40
[Download RAW message or body]

-----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@kde.org, dfaure@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-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic