• Advertisement
Sign in to follow this  

Last comma in initialization list

This topic is 1325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


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

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement