Skip to main content
gamedev.net
🔒 Locked

Empty array initialization

Started by cvet 1 reply 1.2k views
Original Post
cvet
cvet

On this array initialization

int[] a = {};

compiler give error - Not enough values to match pattern.

I think this is bug.

WitchLord
WitchLord

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 - <a href="http://www.angelcode.com/tower" rel
WitchLord
WitchLord

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 - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.