Page 2 of 2

Re: Constants and modules

Posted: Fri Jul 17, 2015 12:21 pm
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.