You're not doing anything wrong. Note that Mono 2.2 has a horrible C# parsing bug in it that makes it unusable.
This works for me on Mac OS X 10.4 with Mono 2.4 RCsomething:
$ cd Cobra/Workspace
$ svn up
$ svn info
Path: .
URL:
http://cobra-language.com/svn/cobra/trunkRepository Root:
http://cobra-language.com/svnRepository UUID: 30746285-aa12-4141-907f-d1d40c2173e5
Revision: 1992
Node Kind: directory
Schedule: normal
Last Changed Author: Chuck.Esterbrook
Last Changed Rev: 1992
Last Changed Date: 2009-03-20 08:37:50 -0700 (Fri, 20 Mar 2009)
$ cd Source
$ ./comp
Expr.cobra(334): warning: "AnonymousMethodExpr._returnTypeProxy" hides inherited member "AnonymousExpr._returnTypeProxy". Use the new keyword if hiding was intended (C#)
Utils.cobra(368): warning: "System.Reflection.Assembly.LoadWithPartialName(string)" is obsolete (C#)
Compilation succeeded - 2 warnings
timeit = 00:00:24.8034090
$ mono --version
Mono JIT compiler version 2.4 (tarball Mon Mar 9 14:38:02 MDT 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors.
http://www.mono-project.com TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
My line 42 of that file reads:
return String.format(CultureInfo.invariantCulture, '{0:' + format + '}', x) to !
What does your?
Was a StringMaker.cobra.cs file left in the ./Snapshot/Cobra.Lang directory? If so, it means the error came from the C# compiler.
Let me know how it turns out.