Constants and modules

Just starting out? Need help? Post your questions and find answers here.
User avatar
mhs
Enthusiast
Enthusiast
Posts: 101
Joined: Thu Jul 02, 2015 4:53 pm
Location: Germany
Contact:

Re: Constants and modules

Post by mhs »

mestnyi wrote: But the question remains , if not how to be placed ?
As far as i know, there is no other option. If you want to define a constant/variable/etc globally for all modules, then you have to put these constants, etc inside another module. The only exception are the predefined PB constants, functions, and so on.

The problem in your second example is, that there is a name conflict, if you use "UseModule", because #Test is already defined in the global namespace.

When I work with modules, then the entire code is in modules.
Post Reply