

using System, System.Collections;
// This is a rather extreme example of interface delegation.
namespace Freya.Demos;
public
EnumerableClass = class(IEnumerable);
implementation for EnumerableClass is
// Click here for the equivalent C# code.
interface IEnumerable = ['Freya', 'rules', 'and',
'coffee-oriented-languages', 'suck!'];
implementation
method Main;
begin
for value in new EnumerableClass do
Console.WriteLine(value);
end;
end.