RE: [GD-General] Variables scope
Brought to you by:
vexxed72
From: CAVEY G. <GER...@sg...> - 2004-02-04 14:09:07
|
>Kristoffer Gr=F6nlund 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. >> =20 >> >Hmm... sounds like an ugly solution for something that is more simply=20 >solved by just >declaring the loop counter outside the for. Hi=20 As Mr Aravelo(pyrostudios) told me out of list it can also be written=20 #define for if (1) for a bit simpler ... I didn t update VC 6.0 yet but maybe that the latest service pack=20 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.=20 Tout message electronique est susceptible d'alteration.=20 SG Asset Management et ses filiales declinent toute responsabilite au = titre de ce message s'il a ete altere, deforme ou falsifie. D=E9couvrez l'offre et les services de SG Asset Management sur le site www.sgam.fr=20 ******** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration. =20 Neither SG Asset Management nor any of its subsidiaries or affiliates = shall be liable for the message if altered, changed or falsified.=20 ************************************************************************= * |