Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Last comma in initialization list


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

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

#1 cvet   Members   -  Reputation: 173

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: 3262

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS