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

"Richard Fabian" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <000b01c4641d$27b7c280$03f57c90@bsfabs>
i seem to be able to safely issue declarations for int initialised
arrays...

e.g. 

	const int ropeLength = 12.5f;
	const int knotSpace = 3.3f;
	int array[ (int)( ropeLength / knotSpace ) ];

is perfectly valid.

it looks like it is quite literally the "const float"s that are at
fault.

------------------
On the other hand
I may be talking
complete drivel.
------------------ 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Jorrit Tyberghein
> Sent: 07 July 2004 10:36 AM
> To: [email protected]
> Subject: Re: [GD-General] not sure where to post this 
> question... bit C++ implementation specific....
> 
> 
> CAVEY GERARD wrote:
> 
> >
> >but why dont you just use some temp integers filled with the 
> abs values 
> >to create your array? It will only add few instructions.
> >Instead of trying to destroy the wall ,just jump over :)
> >  
> >
> 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).
> 
> Greetings,
> 
> 
> 
> -------------------------------------------------------
> 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
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.716 / Virus Database: 472 - Release Date: 05/07/2004
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05/07/2004
 



-------------------------------------------------------
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.