Conflicts with classes in root

21 views
Skip to first unread message

Aldvin Bek

unread,
Jan 27, 2017, 12:24:13 PM1/27/17
to Genome2D
Hi Peter.
I have a problem when I use Genome2D.swc
There are some classes is in root package http://service.crazypanda.ru/v/clip2net/N/g/MKGaOrrRNq.png
Also I use other library that contain class List.as in package com.components.gui

Compiler returns error "Ambiguous reference to List" when I instantiate an object.
import com.components.gui.List;
var a:List = new List();

I know solution
var a:com.components.gui.List = new com.components.gui.List();

But, I think, best way - move Genome2D classes from root to packages.
Is it possible?
Thanks.

Peter Stefcek

unread,
Jan 27, 2017, 12:33:19 PM1/27/17
to Aldvin Bek, Genome2D

There are no Genome2D classes in root all are inside com.genome2d.* if you see any classes in root they are probably Haxe common classes that are outside of Genome2D aldo there is the fact that Genome2D has no List class.

If both libraries are haxe based it would be better to compile them.together.

Peter @sHTiF


--
You received this message because you are subscribed to the Google Groups "Genome2D" group.
To unsubscribe from this group and stop receiving emails from it, send an email to genome2d+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aldvin Bek

unread,
Jan 30, 2017, 1:33:48 AM1/30/17
to Genome2D, aldvi...@gmail.com
Thank you very much for your answer. Unfortunately my library not haxe based.
Reply all
Reply to author
Forward
0 new messages