Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C# and generics under Mono

Name: Anonymous 2006-07-11 12:02

----✂--------✂--------✂----
using System.Collections.Generic;

    List<string> dinosaurs = new List<string>();
    //         ^ This is line 8, char 14.
----✂--------✂--------✂----
$ mcs -unsafe+ -optimize+ -target:module dupa.cs
dupa.cs(8,14): error CS1002: Expecting `;'
Compilation failed: 1 error(s), 0 warnings
----✂--------✂--------✂----

It sucks. Doesn't Mono support generics? It has to, otherwise I won't be able to make my wavelet compression program O_O

Or… Do you know any good tutorial with explanation how to use dynamic arrays under C#? Or any other fast array-like collections?

Name: Anonymous 2006-07-11 22:17

With Mono, you have to use "gmcs" instead of mcs to compile your code if it uses generics.

Name: Anonymous 2006-07-11 22:39

The  mcs compiler is used to compile against the 1.x profile and implements C# 1.0 and 2.0 with the exception of generics and nullable types.
The gmcs compiler is used to compile against the 2.x profile and imple-ments the complete C# 2.0 specification.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List