How to access type from outside of module ???

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

Sorry but BlitzMax thinks something else
( put a private in front of the tlist type declaration and recompiled this module -> TList will not known anymore )

the only thing you can not do is use private and public within types, that is forbidden. but outside of types it works as expected with implementation "hidding"

[edit]

just a small sample


this is allowed


private
type test
 field name:string
endtype


while this is not allowed and will lead to a compiler error

type test
 private
  field name:string
 public
  method print_name()
   print name
  endmethod
endtype