full class name using reflection?

BlitzMax Forums/BlitzMax Programming/full class name using reflection?

ziggy(Posted 2008) [#1]
Is there any way to get the full class name of an object using reflection? I mean, if I have a brl.linkedlist.TList object and I use reflection, the object name is only TList. What about if a third party plugin (let's say ModServer.MyModule) also has a TList object? How can I have the proper complete name of the object?
You can instantiate any of them:
Local List1:brl.linkedlist.tlist = new (brl.linkedlist.tlist)
Local List2:ModServer.MyModule.tlist = new (ModServer.MyModule.tlist)
Print TTypeId.ForObject(List1).Name()
Print TTypeId.ForObject(List2).Name()

both list TList, but they are different classes, not sure how to get the complete qualified name of an object using reflection... ?


AlexO(Posted 2008) [#2]
interesting...
You can call:
BRL.LinkedList.CreateList()


but ...
local list:TList = new BRL.LinkedList.TList

...doesn't work. The namespacing in blitzmax seems kind of half there. It allows you to name space functions but not types?


ziggy(Posted 2008) [#3]
This is a matter of operators, New takes more priority than the dot, so it should be:
Local List:Tlist = new(brl.linkedlist.tlist)



plash(Posted 2008) [#4]
Don't think this is possible, yet.