Этот код:
using System;
using System.Console;
using Nemerle.Utility;
using Nemerle.Data;
using System.Data.SqlClient;
module Program
{
Main() : void
{
def c = SqlConnection("Data Source=dev-w;Initial Catalog=Northwind;Integrated Security=True");
c.Open();
ExecuteReaderLoop ("select CustomerID from Customers", c,
{ WriteLine("test"); });
}
}
не компилируется
Error 1 KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'
Error 2 KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'
Error 3 the meaning of `ExecuteReaderLoop' does not allow this operation
Error 4 KeyNotFoundException has occurred when expanding macro 'ExecuteReaderLoop'
Error 5 the meaning of `ExecuteReaderLoop' does not allow this operation
Почему?