Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now
- - - - -

Last comma in initialization list

4: Adsense

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   

270
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.


#2 Andreas Jonsson   Moderators   

4629
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.