Namespaces?

BlitzMax Forums/BlitzMax Programming/Namespaces?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Namespaces are already on BlitzMax.

Example code:
Type Tlist
    Method DoSomething:String(Val:String)
        Return Val
    End Method
End Type

Local Var1:Tlist
Local List:brl.pub.tlist

a namespace in BlitzMax is composed by the modserver name and the module name.
Once you import a module, the full namespace path is not requiered, but you can use it to avoid naming conflicts, like in the example above.

if you import sidesign.minib3d you don't need to write:
sidesign.minib3d.graphics3d(800,600)

becouse in the import statement, the namespace is already selected. So you can make:
graphics3d(800,600)

directly.