🎉 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!

Last comma in initialization list

Started by
0 comments, last by WitchLord 10 years ago

Hello.

In C#/C++ last comma in initialization list is ignored and not influence on size of array, if after it placed empty field.

I think it is good feature and can be implemented in AngelScript too.

dictionary a =
{
{ "a", 1 },
{ "b", 2 },
{ "c", 3 }, // Error on this comma for now, but will be OK after changes
};

Advertisement

I'll think about it.

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