Menu

#15 .NET Robocode API does not support C# yield return generators

none
open
nobody
None
1
2016-05-26
2012-12-07
Anonymous
No

Not sure if this is a bug, but the robot loader throws an exception when yield return is used and fails to load any robots in the .NET assembly. I can think of no reason why yield return would not be allowed in a bot.

Discussion

  • Flemming N. Larsen

    It sounds like a bug. It could be related to security as there are several security restrictions on robots so they won't cheat or harm the end-users system.

    Is the issue about yield return <expression>?

    I should like you to to attach or list a minimalistic robot that can be used for reproducing the issue and show how the yield is being used for better understanding the issue.

    Thanks in advance! :-)

     

    Last edit: Flemming N. Larsen 2012-12-11
  • Pavel Šavara

    Pavel Šavara - 2012-12-12

    yield return is mostly compiler sugar, should not have impact.
    We need exception details.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.