🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Empty array initialization

Started by
1 comment, last by WitchLord 9 years, 11 months ago

On this array initialization

int[] a = {};

compiler give error - Not enough values to match pattern.

I think this is bug.

Advertisement

Indeed. I'll have it fixed.

Of course, the result of int[] a = {}; would be the same as just int[] a;

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I've fixed this in revision 1986.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement