How to access type from outside of module ???

BlitzMax Forums/BlitzMax Programming/How to access type from outside of module ???

there is some stuff in the sources ( especially the brl modules ) that is nowhere explained in any of the helpfiles:

1) Import imports a precompiled module where you can use everything that is exported

=> How do we actually export anything
that is the point where only the brl sources help you, using a way which I was quite surprised

2) Some C++ programmers here might alreay have spotted it, but you will find "private" and "public" in the brl module sources! private means not exported, while public means exported


public

type test

 method bla()
  print "blabla"
 endmethod
endtype

private

type test1
 method bla()
  print "blablubb"
 endmethod
endtype



haven't tested it as I am not at dev system, but if you include this source test will be accessable while test1 only exist for internal purposes ...