Variable Length Arrays (Not) In Visual C++

The C99 language standard added support for variable length arrays (VLAs):

 void foo(int len){  float myArray[len];  ... } 

In porting some C# code to C++, I had a method signature like that, so I tried to use a VLA. Sadly, VC++ 2005 produces “error C2057: expected constant expression,” “error C2466: cannot allocate an array of constant size 0,” and “error C2133: ‘myArray’ : unknown size”. I’ve confirmed that this is a compliance thing: the code works with

gcc -std=iso9899:1999

. Pity.>

Sloppy: Calibri @ 100%

Sloppy: Calibri @ 100%

Friday, July 21, 2006

7:36 AM

Microsoft’s new font, Calibri, is good-looking, but not at the default size and resolution it’s provided in Office 2007. Look at the c-e boundary:

Heck, it looks better at 98%:

But it looks its best at higher-resolutions (124%):

I don’t know if this is the fault of the font, the display subsystem, or the application, but it’s sloppy.


Created with Microsoft Office OneNote 2007 (Beta)
One place for all your information