Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a compiled bug on c# platform about enumerator and generic #3224

Closed
zxiy opened this issue Aug 5, 2014 · 7 comments
Closed

a compiled bug on c# platform about enumerator and generic #3224

zxiy opened this issue Aug 5, 2014 · 7 comments
Assignees

Comments

@zxiy
Copy link

zxiy commented Aug 5, 2014

I use the part that extern System.Collections of “HUGS” library(https://github.com/proletariatgames/HUGS)

e.g.

var le:List_Enumerator<String> = null;

it compiled as

default(global::System.Collections.Generic.List.Enumerator<string>)
@waneck
Copy link
Member

waneck commented Aug 5, 2014

What's the bug there?

@zxiy
Copy link
Author

zxiy commented Aug 5, 2014

System.Collections.Generic.List.Enumerator<string> should be System.Collections.Generic.List<string>.Enumerator

@waneck
Copy link
Member

waneck commented Aug 5, 2014

I really don't understand what you mean - What would System.Collections.Generic.List<string>.Enumerator be? Where are the docs about it?
Also since 3.1, haxe now supports .net dll input using -net-lib, so I recommend that you test your collections code with haxe's native support instead of HUGS first - so you're sure it's not something wrong with HUGS.

@waneck waneck closed this as completed Aug 5, 2014
@waneck
Copy link
Member

waneck commented Aug 5, 2014

Oh, okay - I got it: the problem is with http://msdn.microsoft.com/en-us/library/x854yt9s(v=vs.110).aspx .

@waneck waneck reopened this Aug 5, 2014
@waneck
Copy link
Member

waneck commented Aug 5, 2014

Code to reproduce without the HUGS dependency:

class Main
{
    public static function main()
    {
        var list = new cs.system.collections.generic.List_1();
        list.Add('aa');
        var enumerator = list.GetEnumerator();
    }
}

@zxiy
Copy link
Author

zxiy commented Aug 5, 2014

okay, it can work.
but why i can not find that cs.system.collections.generic.HashSet_1 ?

@nadako
Copy link
Member

nadako commented Nov 11, 2014

fix this pl0x

@waneck waneck closed this as completed in ef30986 Nov 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants