Advertisement

Last comma in initialization list

Started by June 07, 2014 08:56 AM
0 comments, last by WitchLord 10 years, 8 months 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
};

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