RE: Variables scope

CAVEY GERARD <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <71A291D8E360AF4EA6FFFAF9CAD136CA0146F5E5@FR-MAILBOX2.fr.sgam.socgen>
>Kristoffer Grönlund wrote:
>
>>The way I've worked around this in the past has been by redefining for as
>>follows:
>>#define for if (false) {} else for
>>
>>Yes, it's a hideously ugly hack, but so is the problem in the first place.
>>I've never had any problems because of it.
>>  
>>
>Hmm... sounds like an ugly solution for something that is more simply 
>solved by just
>declaring the loop counter outside the for.

Hi 
As Mr Aravelo(pyrostudios) told me out of list
it can also be written 
#define for if (1) for
a bit simpler ...
I didn t update VC 6.0 yet but maybe that the latest service pack 
can avoid the workaround.
Anyway I d better wait to get VS.NET
Thanks for your help

Regards
GC


*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
SG Asset Management et ses filiales declinent toute responsabilite au titre
de ce message s'il a ete altere, deforme ou falsifie.

Découvrez l'offre et les services de SG Asset Management sur le site
www.sgam.fr 

				********

This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SG Asset Management nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified. 

*************************************************************************





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU7
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.