----✂--------✂--------✂----
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:
Anonymous2006-07-11 12:21
char**
Name:
Anonymous2006-07-11 14:34
Use arrays of strings (1 character in every string) for floating point numbers. It is a scalable and enterprise ready solution.
Name:
Anonymous2006-07-11 14:39
2
How is char** supposed to solve my problem?
8
It's for RUN-length and Huffman coding. So, I should use byte[], right? So, how to add new element to byte[] array?
And the question with Mono and generics remains. I forgot to mention that my version is 1.1.15, compiled from sources. Maybe I have forgotten to add some --option to configure script?
Name:
Anonymous2006-07-11 14:42
9
This is only an example with which I tried to compile program. It is NOT for actual coding or anything. Wasn't that clear?
Name:
Anonymous2006-07-11 15:09
C# is like Java... but unlike java... float is actually an Object... so you can you your regular ArrayList or what not to store them dynamically. C# is C like only in syntax, it really should be Coffe# or Java#.
No... and you won't get fast code like you would in C++ using an STL container for a specific type.
Name:
Anonymous2006-07-11 22:17
With Mono, you have to use "gmcs" instead of mcs to compile your code if it uses generics.
Name:
Anonymous2006-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.
Name:
Anonymous2006-07-12 4:35
9, 10
Arigatgō gozaimashita! That was the key!
No... and you won't get fast code like you would in C++ using an STL container for a specific type.
Yes, I'm aware. All I have to do is to implement some wavelet compression and compare efficiency against C++ implementation ;-)
>>12
What's worse is that they helped a weeaboo who said "Arigatgō gozaimashita!" afterwards. I'm going to start a petition to close /prog/ due to this travesty.
>>13
I answered because I knew what it was. I had the same problem two months ago and I help when I can, it's free, such is the power of the intarweb. And if you don't want to help or ask for help, what are you doing here? (no spellcheck, I'm on the phone)
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy