Forums

Hello World error

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Re: Hello World error

Postby Charles » Tue Aug 21, 2012 5:59 pm

If you installed Cobra for .NET 4, you can reference System.Core with no path like so:
@ref 'System.Core'
use System.Linq

class PrintRange
def main
for i in Enumerable.range(1, 10)
print i

You can check with "cobra -version" and look at the number after "CLR". On Mac, mine is currently:

Cobra svn:2784 (post 0.8) / 2012-08-18 on Mono 2.10.9 CLR v4.0.30319 on Mac OS X 10.6.8
Charles
 
Posts: 2515
Location: Los Angeles, CA

Previous

Return to Discussion

Who is online

Users browsing this forum: No registered users and 11 guests