I'm sure this wasn't Ayende's intention...
I’m sure this wasn’t Ayende’s intention…
But now that I know C# has a GOTO statement I can bang out this classic from my Apple II days…
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ten:
print("hello world");
twenty:
goto ten;
}
static void print(string msg)
{
Console.WriteLine(msg);
}
}
}