|
From: Adam M. <up...@in...> - 2003-02-27 15:48:21
|
>>It is a system extension (variable sized arrays). So whay does VC++ not compile it? Is it too old? -------Original Message------- From: Adam Malinowski Date: ĐÝěđôç, 27 ÖĺâńďőÜńéďň 2003 5:01:10 ěě To: dev...@li... Subject: [Dev-C++] Mistake ? Hi all. One day i made a little mistake. Instead of "char* Name = new char[FilenameLength];" i wrote " char Name[FilenameLength];", where FilenameLength is evaluated by runing program. I didn't notice that and everythig worked properly. Yesterday i compiled the project under VisualC++ 6.0 and ofcourse compiler said it is an error. Ofcourse it is error because compiler needs constant value for table size. Can someone tell me why mingw didn't report any error and what is more interesting: why my program worked properly? regards. Adam. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ---------------------------------------------------------------------- Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f16c9 |