RE: not sure where to post this question... bit C++ implementation specific....

"Dr Andrew Perella" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
I think this comes from C99 complience - not standard yet.
Cheers,
Andrew

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> CAVEY GERARD
> Sent: 07 July 2004 10:54
> To: '[email protected]'
> Subject: RE: [GD-General] not sure where to post this question... bit
> C++ implementation specific....
>
>
> >
> >How would that help? In C++ you simply cannot do this:
> >
> >    int a = 6;
> >    int array[a];
> >
> >It is not possible to allocate arrays with variables (const or
> not const).
>
> Guys
>
> How can you explain the following code compiles under mingw32(IDE=devc++
> 4987)?
> Do you use visual studio ?
> Anyway i ll it a try on solaris.
>
> int main(int argc, char *argv[])
> {
>
>   const float ropeLength = 12.5f;
>   const float knotSpace = 3.3f;
>
>   int array[ int(ropeLength / knotSpace) ];
>
>   int a=6;
>   int arraybis[a];
>
>   return 0;
> }
>
>
> *************************************************************************
> 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.
>
> *************************************************************************
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Gamedevlists-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_idU7
>
> _____________________________________________________________________
> This e-mail is confidential and may be privileged. It may be
> read, copied and used only by the intended recipient. No
> communication sent by e-mail to or from Eutechnyx is intended to
> give rise to contractual or other legal liability, apart from
> liability which cannot be excluded under English law.
>
> This message has been checked for all known viruses by Star
> Internet delivered through the MessageLabs Virus Control Centre.
>
> www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322


_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. 

This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. 

www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557
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.