Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Last comma in initialization list

  • You cannot reply to this topic
1 reply to this topic

#1 cvet   Members   -  Reputation: 163

Like
0Likes
Like

Posted 07 June 2014 - 02:56 AM

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
};


Edited by cvet, 07 June 2014 - 02:56 AM.


Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3227

Like
0Likes
Like

Posted 07 June 2014 - 06:48 AM

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





PARTNERS