are List/Map Nodes meant to be used?
Monkey Forums/Monkey Programming/are List/Map Nodes meant to be used?
| ||
So are we supposed to use the List/Map Node classes? If so would it be possible to alter the naming convention as currently I would have to add something like this: Alias ListNode = monkey.list.Node Without this monkey will complain about duplicate identifier Node in Map and List. Should this be in the bug forum? |
| ||
use Alias at the top of your code: Alias Node = list.Node to solve the naming clash |
| ||
Added it into my header. It seems like it needs an official tweak though as surely it is broken if I can't use without alias first? |
| ||
@skn3: I don't think so, it would be nice if both implement the same INode interface, so you can use just the interface to use any of them whenever. Other than that, you can always full-qualify them, or use alias if you really need to. |
| ||
Yeah both using a common INode would be good! hmm is this wrong?Import monkey.list Import monkey.map Function Main() Local blah:monkey.list.Node End I am unable to qualify the node like this? |
| ||
Local blah:list.Node |
| ||
only module name is allowed, not full module "path" |
| ||
Ah cool thanks for that. |